如何使用后记和图像导出自定义后记类型详细信息 [英] How to export custom post type details with it's postmeta and images

查看:75
本文介绍了如何使用后记和图像导出自定义后记类型详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在两个网站上都有一个自定义帖子类型,我必须导出该帖子类型中的所有帖子,然后导入到第二个网站.

所以我的帖子类型是产品" .实际上,我可以使用Wordpress默认导入导出,但是问题是它不包括帖子类型中的全部详细信息,并且不导出所有图像.

在我的产品中,我在特色图片侧边栏旁还有一个图片库部分.在这里,我可以添加图库图像.

因此,如果我的帖子ID为324 ,并且为该帖子添加了两个厨房图片,那么在数据库post_meta_option中,我可以看到

post_id = 324 meta_key = rtthemert_gallery_images meta_value = 222,223 ,此处223,224是图像ID.

因此,请任何人都可以帮助我仅对此画廊图像进行导出查询,以便在我导入第二个站点时,画廊图像也需要自动添加到该帖子中.

解决方案

您可以使用 WP全部导出以导出,并 WP全部导入以便在其他站点上导入.这两个插件都是由同一家公司开发的,并且可以很好地协同工作.

该界面非常简单易用.

多年来,我已经在一些需要大量调整的大型数据库上使用它,但是我从未遇到任何问题.

I have a custom post type on two websites and I have to export all posts in that post type and import to the second site.

So my post type is "products". Actually, I can use Wordpress default import export but the problem is that it is not including the full details in the post type and not exporting all images.

In my product, I have an additional image gallery section near featured image sidebar. Here I can add gallery images.

so if my post id is 324 and I added two galley images for that post then in database post_meta_option I can see that

post_id=324, meta_key=rtthemert_gallery_images ,meta_value =222,223 here 223,224 are image id.

So please anyone can help me to make an export query for this gallery images only, so that when I import to the second site the gallery images also need to automatically added to that post.

解决方案

You can use WP all Export to export and WP all Import to import on the other site. Both plugins are developed by the same company and they work great together.

The interface is pretty straightforward and easy to use.

I've been using it for years on some really large databases with a lot of required tweakings and I never had any issue.

这篇关于如何使用后记和图像导出自定义后记类型详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆