custom post types - Exporting CPT from dev site and import into live site?

admin2025-06-04  6

Trying to figure out the best way of doing this with the WP CLI.

Right now I'm running:

wp export --dir=./tmp_posts/ --post__in=2656 --with_attachments

This creates an export file, but some of the fields for images just contain nodes like:

<wp:postmeta>

<wp:meta_key>_acf_section_0_sc_bg_img</wp:meta_key>

<wp:meta_value><![CDATA[field_587e95cc672a0]]></wp:meta_value>

</wp:postmeta>

Is is possible that importing this to the live site will actually bring over the images?

If there a better way to do this with custom post types? I use Migrate DB Pro but it seems overkill sometimes and was hoping to have a more simplistic approach for individual posts.

Thanks!

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749001284a315515.html

最新回复(0)