I have been moving around 40k posts from one site to another (different domains), using wp cli, all went well, but it seems the featured image weren't imported.

I have now uploaded all media files using wp cli and they seem to have the same ID's in the database, as the previous website.

In the postmeta table, _thumbnail_id already have the correct value, but the featured images show up blank. What should I do?

  • 1
    Add e.g. a featured image (manually via the UI) to a single post, that should already have one and compare all the related database fields (before/after comparison). Also check the error logs on server and console errors. – birgire Feb 5 at 11:13
  • that sounds exhausting, why not use updraft?? – Cam Feb 5 at 21:17
  • @birgire: I will try that and report. – Mohit Feb 6 at 12:17
  • @Cam: Already been done, cannot go back. Took days to import everything. Exhausting and frustrating indeed. – Mohit Feb 6 at 12:18

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.