And*_*son 8 wordpress export wordpress-theming
我一直在尝试导出我的WordPress帖子,以便将它们导入干净的WordPress安装.导入的帖子,但不导入特色图像.
我已确保导出少量帖子以排除超时错误.
我看了一下导出的xml,找不到带有相关jpg的xml值.这是我的导出xml中的一个帖子项目(为隐私编辑):
我注意到"_thumbnail_id"的元键.
<item>
    <title> MY POST TITLE </title>
    <link>http://www.MY-DOMAIN-NAME.com/MY POST TITLE/</link>
    <pubDate>Mon, 01 Jul 2013 17:31:11 +0000</pubDate>
    <dc:creator> AUTHOR </dc:creator>
    <guid isPermaLink="false">http://www.MY-DOMAIN-NAME.com/?p=12429</guid>
    <description></description>
    <content:encoded><![CDATA[http://youtu.be/VIDEOCODE
 <a href="http://www.MY-DOMAIN-NAME.com/?s=MY+QUERY" class="mo">Read More...</a>]]>  
  </content:encoded>
    <excerpt:encoded><![CDATA[]]></excerpt:encoded>
    <wp:post_id>12429</wp:post_id>
    <wp:post_date>2013-07-01 12:31:11</wp:post_date>
    <wp:post_date_gmt>2013-07-01 17:31:11</wp:post_date_gmt>
    <wp:comment_status>open</wp:comment_status>
    <wp:ping_status>open</wp:ping_status>
    <wp:post_name>MY-POST-TITLE</wp:post_name>
    <wp:status>publish</wp:status>
    <wp:post_parent>0</wp:post_parent>
    <wp:menu_order>0</wp:menu_order>
    <wp:post_type>post</wp:post_type>
    <wp:post_password></wp:post_password>
    <wp:is_sticky>0</wp:is_sticky>
    <category domain="category" nicename="music-videos"><![CDATA[Music 
   Videos]]></category>
    <category domain="post_tag" nicename="MY-TAG"><![CDATA[RMY TAG]]>
   </category>
    <category domain="category" nicename="reggae-music-video"><![CDATA[Reggae Music Videos]]></category>
    <category domain="category" nicename="video"><![CDATA[Video]]></category>
    <wp:postmeta>
        <wp:meta_key>_edit_last</wp:meta_key>
        <wp:meta_value><![CDATA[9]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>_thumbnail_id</wp:meta_key>
        <wp:meta_value><![CDATA[12431]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>robotsmeta</wp:meta_key>
        <wp:meta_value><![CDATA[index,follow]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>_oembed_c0627bbe93a4ea2be1138b1197ad7c</wp:meta_key>
        <wp:meta_value><![CDATA[<iframe width="500" height="281"
  src="http://www.youtube.com/embed/4ZlUX9o8D1I?feature=oembed" frameborder="0" 
  allowfullscreen></iframe>]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>idptt_tweeted</wp:meta_key>
        <wp:meta_value><![CDATA[1]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>_oembed_40c0cae11733595001b4711ce77e07</wp:meta_key>
        <wp:meta_value><![CDATA[<iframe width="584" height="329" 
  src="http://www.youtube.com/embed/VIDEOCODE?feature=oembed" frameborder="0" 
   allowfullscreen></iframe>]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>_oembed_2fc8ceb52fa6df35be292c5639fef0</wp:meta_key>
        <wp:meta_value><![CDATA[<iframe width="540" height="304" 
 src="http://www.youtube.com/embed/VIDEOCODE?feature=oembed" frameborder="0" 
 allowfullscreen></iframe>]]></wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
        <wp:meta_key>_oembed_80aa58fde2202424507180b82beb0b</wp:meta_key>
        <wp:meta_value><![CDATA[<iframe width="620" height="349"
   src="http://www.youtube.com/embed/VIDEOCODE?feature=oembed" frameborder="0" 
  allowfullscreen></iframe>]]></wp:meta_value>
    </wp:postmeta>
</item>
当您导出帖子而不是所有内容时,不会导出帖子类型附件,我认为之前没有发生.因此要么导出所有内容,要么采用"所有内容"xml文件并复制post type = Attachment的所有项目.
更新: 我创建了一个导出特色图像的插件.您可以在Wordpress存储库中找到它
| 归档时间: | 
 | 
| 查看次数: | 15631 次 | 
| 最近记录: |