Import featured images without having to download them. - WORDPRESS

0

I've been working on a site that has been around since 2001.

I would like to export only your (posts + featured images) from 2015 backwards, but I do not need to download the images so I imagine everything is by database.

The default exporter of Wordpress does not work, and the plugins that do this service download the image (I do not need it because the images are in a blob).

How do I collect this data? I know the content I need is in wp_posts wp_post_metas

    
asked by anonymous 27.11.2017 / 20:06

1 answer

0

If you have SSH access to the server, you can use WP CLI to export only what I want the bank:

$ wp db export --tables=wp_posts,wp_postmeta posts.sql

This command exports only the wp_posts and wp_postmeta tables to a posts.sql file that you can import into the new database.

    
06.12.2017 / 11:57