- 105 月
-
wordpress外掛介紹─RSS in Page
外掛名稱:RSS in Page
外掛下載:http://wordpress.org/extend/plugins/rss-in-page/
功能說明:可以直接在文章頁列出一個或多個網站的RSS訊息使用方法:
1‧前往下載並安裝啟用外掛後,直接將下列的code貼到文章頁即可:
[rssinpage rssfeed='feedURL1, feedURL2, feedURL3']
2‧此外掛預設為顯示五則,顯示的內容為『x: Y – w<br>z』,於此處x代表時間,Y代表帶有連結的標題,y代表標題(不帶連結),z是描述,w是 feed的名稱,所以若直接貼會看到下列樣式:
[rssinpage rssfeed=’http://twitter.com/statuses/user_timeline/15014959.rss’]
3‧此外掛可以自行調整相關設定,像下列內容即為調整後樣式:
[rssinpage rssfeed='http://twitter.com/statuses/user_timeline/15014959.rss' rssitems='3' rssdescription='no' rsscss='bullet-blue' rsstarget='_blank']
[rssinpage rssfeed=’http://twitter.com/statuses/user_timeline/15014959.rss’ rssitems=’3′ rssdescription=’no’ rsscss=’bullet-blue’ rsstarget=’_blank’]
4‧相關對應語法如下:
- rssitems=’number’ sets the number of items to return, default is 5
(每一個rss,顯示的則量,預設是五則) - rssorder=’asc’ returns items from oldest to newest, default is ‘desc’ which returns items from newest to oldest
(排序方式,asc是由舊到新,desc事由新到舊) - rsstarget=’_blank’ opens item link in new window, default is ‘_self’
(設定連結的開啟方式,_blank是另開視窗,_self開在原有頁面,預設是_self) - rssdateformat allows item date to be formatted using php date parameters, default is RFC 2822 formatted date
- rss description=’no’ suppresses default display of the description
(是否顯示敘述文字) - rsscss=’yourclassname’ allows you to give the list a specific style rather than inheriting the default content list style in your theme
(設定顯示結果套用css的樣式) - rsstitlelength allows you to truncate the title to a certain character length
- rssdescriptionlength allows you to truncate the description to a certain character length
- rsstimezone allows you to set the timezone in which the feed datetime will be displayed, default is UTC; use values from the php list of supported timezones e.g. PST is America/Los_Angeles, MST is America/Denver, CST is America/Chicago, EST is America/New_York.
Posted by admin Posted on 10 5 月 - rssitems=’number’ sets the number of items to return, default is 5
Post Comments 0