• Resolved snecz

    (@snecz)


    Hello,
    Thanks for great plugin.
    While working on local server everything was fine. After moving website into live server there’re no thumbnails as images of categories but full images.
    What can be wrong?
    My code is:

    <?php foreach (get_categories() as $cat) : ?>
            		<?php if($cat->parent < 1): // Only Parent Category, if you want the Sub-category, delete the If ?>
                    <div class="image">
     				<a href="<?php echo get_category_link($cat->term_id); ?>"><img src="<?php echo z_taxonomy_image_url($cat->term_id,'thumbnail'); ?>" /></a>
     				<a href="<?php echo get_category_link($cat->term_id); ?>" class="kategoria"><?php echo $cat->cat_name; ?></a>
                    </div>
            		<?php endif; ?>
    			<?php endforeach; ?>

    https://www.ads-software.com/plugins/categories-images/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Muhammad

    (@elzahlan)

    I think it is because of the plugin saves the full image path in the db, so you need to re select all images of these categories again or run a mysql query to update these values

    Thanks

    Hey first off, great work on this awesome plugin!

    I’m having the same problem as snecz mentioned above after migrating my site to a new URL.

    However even if I re-save the category/taxonomy image it’s still giving me the original “full” image size instead of the custom thumbnail size specified in my code.

    The only solution I’ve found thus far is to reupload the image with a new filename.

    Is there any way around this?

    Plugin Author Muhammad

    (@elzahlan)

    Hey Evan, have you tried this plugin ? i think it will solve your problem.

    Hey thanks for the tip. I use that plugin all the time, but unfortunately it didn’t help.

    All necessary images sizes were already created on the local development version of the website. No new image sizes should be necessary. When I migrate the site to a new URL on the live web server, the original (full) image URLs are being pulled in instead of the URL for the custom thumbnail size.

    I ran the Regenerate Thumbnails plugin anyway just to see if it would fix things, but the same problem persists.

    For what it’s worth, this is the code I’m using to display the images:

    <?php echo z_taxonomy_image_url($cat->term_id, 'factoring-thumbnail'); ?>

    That should allow me to pull in a custom image size called “factoring-thumbnail,” but instead I’m getting the original image in its place.

    For what it’s worth, I had to migrate this website to yet another new URL this morning and the exact same problem happened.

    Plugin Author Muhammad

    (@elzahlan)

    Hi Evan, did you manage to fix this problem ?

    Unfortunately not yet.

    The only fix is to re-upload individual images for all categories/taxonomies.

    I’m guessing there is some way to automate the process, but I haven’t hit on anything yet.

    The plugin saves the full image URL in the database. Maybe there’s some way to grab custom images sizes based on the full image URL? I’m not entirely sure.

    Regardless, thank you for following up!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem after moving website’ is closed to new replies.