wordpress 自定rss 內容

wordprss 可以選擇訂閱內容全部顯示或部分顯示,假如部分顯示,也許有些東西在底部推薦給讀者的看不到,這裡有個方法,在function 裡面加上一段

[php]

if ( !function_exists(‘custom_feed_footer’) ){        function custom_feed_footer($content)         {                if(is_feed())                $content .= ‘自定內容’;                return $content;        }        add_filter(‘the_excerpt_rss’, ‘custom_feed_footer’);        add_filter(‘the_content’, ‘custom_feed_footer’);}

[/php]

記錄一下,希望有用

來自:http://www.wordpress.la/custom-feed-bottom-content.html

作者

rockfu

由小學年代已經沉迷電腦,喜歡分享電腦相關資訊。

One thought on “wordpress 自定rss 內容”

  1. I wanted to visit and allow you to know how , very much I appreciated discovering your web site today. I might consider it the honor to do things at my workplace and be able to utilize the tips provided on your web page and also be a part of visitors’ remarks like this. Should a position regarding guest publisher become offered at your end, make sure you let me know. downtown pizza

評論已被關閉。