Title: Problem after moving website
Last modified: August 30, 2016

---

# Problem after moving website

 *  Resolved [snecz](https://wordpress.org/support/users/snecz/)
 * (@snecz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/)
 * 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://wordpress.org/plugins/categories-images/](https://wordpress.org/plugins/categories-images/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Zahlan](https://wordpress.org/support/users/elzahlan/)
 * (@elzahlan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552122)
 * 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
 *  [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [10 years ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552144)
 * 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 [Zahlan](https://wordpress.org/support/users/elzahlan/)
 * (@elzahlan)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552145)
 * Hey Evan, have you tried [this plugin](https://wordpress.org/plugins/regenerate-thumbnails/)?
   i think it will solve your problem.
 *  [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552146)
 * 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.
 *  [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552147)
 * 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 [Zahlan](https://wordpress.org/support/users/elzahlan/)
 * (@elzahlan)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552149)
 * Hi Evan, did you manage to fix this problem ?
 *  [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552150)
 * 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.

 * ![](https://ps.w.org/categories-images/assets/icon-128x128.png?rev=2256871)
 * [Categories Images](https://wordpress.org/plugins/categories-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/categories-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/categories-images/)
 * [Active Topics](https://wordpress.org/support/plugin/categories-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/categories-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/categories-images/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/problem-after-moving-website-1/#post-6552150)
 * Status: resolved