2016-08-30 12 views
0

RSSフィード2.0で私のWordpressブログの新しい投稿をインポートしたいと思います。私はwordpressインポートのためのstandart XMLファイルを生成し、いくつかのカスタムフィールドを追加しました:サムネイル、ビデオと期間。ここで は例:ワードプレスのカスタムフィールドをインポートRSSフィード

<rss version="2.0" 
xmlns:content="http://purl.org/rss/1.0/modules/content/" 
xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
xmlns:dc="http://purl.org/dc/elements/1.1/"> 
<title>Title</title> 
<link>Somelink</link> 
<language>en</language> 
<channel> 
<item> 
    <title>Title</title> 
    <pubDate>Mon, 29 Aug 2016 04:24:00 +0000</pubDate> 
    <description>description</description> 
    <content:encoded><![CDATA[some text]>content:encoded> 

    <Category>category 1</Category> 
    <Category>category 2</Category> 

    <wp:postmeta> 
    <wp:meta_key>duration</wp:meta_key> 
    <wp:meta_value><![CDATA[25:44]]></wp:meta_value> 
    </wp:postmeta> 

    <wp:postmeta> 
     <wp:meta_key><![CDATA[videoswiper-embed-thumb]]></wp:meta_key> 
     <wp:meta_value><![CDATA[http://example.com/thumb.jpg]]>  </wp:meta_value> 
    </wp:postmeta> 
    <wp:postmeta> 
      <wp:meta_key><![CDATA[videoswiper-embed-code]]></wp:meta_key> 
      <wp:meta_value><![CDATA[<embed type="application/x-shockwave-flash" src="[http://example.com/video.mp4"/>]]></wp:meta_value> 
    </wp:postmeta> 
</item> 
</channel> 
</rss> 

私が記事を作成することに成功してきたが、カスタム型の値が空です。 上記に加えて。この3つのフィールドが既に存在するカスタムテーマを使用します(デフォルトでは空です)。

私は間違って何をしていますか?

答えて

0
<content:encoded><![CDATA[some text]>content:encoded> 

または

<content:encoded><![CDATA[some text]]></content:encoded>