Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #21906

    Hi there, I imported multiple hundreds of posts from an old WP site and many of which had featured images are no longer showing up. I tried a couple suggestions from different forum posts – Regenerate Thumbnails (tried first and to no avail), then Auto Post Thumbnail (finds the first image in a post and makes it the Featured Image). Neither of those worked, unfortunately.

    I moved all of the images files in the Uploads folder from the old site to the new site’s Upload folder and changed the old website links to the images in the database to the new website. The “Media” section in the admin doesn’t recognize the images were uploaded (I could try regenerate thumbs again) but the images do show up when they are embedded into posts.

    My question: Is there a way to convert the Featured Images to be the first image in the Slideshow for each post so the posts will have thumbnails again? The site looks pretty bare without them. I believe Auto Post added featured images but there is no way to tell since the Featured Image was replaced.

    Let me know if that all makes sense or if I should clarify on the issue further. Thank you much for all the great support!!



    I created a script which should help you:

    Add the code (without the first <?php line) to the bottom of functions.php and reload your admin page. It will take quite a lot of time (depends on the total number of posts, attachments, etc.) but this script should add all post attachments to the slideshow. I tested the script and it worked on my test server but please note:

    1) Make a backup of your database – if something goes wrong you can use this backup to restore the database.

    2) The conversion script requires some time to convert the attachment/featured image data to post meta data. If your server/hoster restricts the php execution time with a time limit (eg 30 seconds) this script maybe doesn’t work as expected (especially if you want to convert many posts/pages). In this case I’d recommend to increase the php execution time to 90 seconds or if this is not possible because your hoster doesn’t allow you to manipulate the execution time setting, etc. you need to run this script on a local server where you can change the execution time (you can change it in the php.ini).

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Imported old site, and now Featured Images don't show on posts…’ is closed to new replies.