2014-09-02 103 views
0

有可能使wordpress輸出rss或json與10個或更多職位發佈的所有類別的最後10篇文章?WordPress的自定義rss或JSON飼料

類似的東西或類似:

<categorie> 
    <title>News</title> 
    <slug>news</slug> 
    <lastposts> 
     <item> 
      <title>New 1</title> 
      <url>http://website.com/new1</url> 
      <thumb>http://website.com/thumbnail_new1.jpg</thumb> 
     </item> 

     <item> 
      <title>New 2</title> 
      <url>http://website.com/new2</url> 
      <thumb>http://website.com/thumbnail_new2.jpg</thumb> 
     </item> 

     ... 

    </lastposts> 
</categorie> 

<categorie> 
    <title>Other</title> 
    <slug>other</slug> 
    <lastposts> 
     <item> 
      <title>Other 1</title> 
      <url>http://website.com/other1</url> 
      <thumb>http://website.com/thumbnail_other1.jpg</thumb> 
     </item> 

     <item> 
      <title>Other 2</title> 
      <url>http://website.com/other2</url> 
      <thumb>http://website.com/thumbnail_other2.jpg</thumb> 
     </item> 

     ... 

    </lastposts> 
</categorie> 

... 

我已經與http://www.example.com/?cat=42,43&feed=rss2嘗試,但它並沒有顯示每個categorie 10個職位。

謝謝

回答

1

是的,你可以。試試這個tutorial

+0

感謝Hayder。現在正在工作。 – 2014-09-03 10:19:54

+0

不客氣。 – 2014-09-03 11:59:47