內容簡介
注意:版本1.3.1引入了用於外掛設置的管理員選單。還有一種新的方法來傳遞參數給短碼和PHP函數。升級前後,您應該檢查所有短碼和外掛功能調用,以確認其與此版本的兼容性。
如果您需要這個外掛的幫助
如果這個外掛破壞了您的網站或者根本沒有工作,請去兼容性頁面,在確認您使用的WordPress版本和外掛版本之後,按下"已損壞"。
接著,在支持論壇中創建一個帖子,描述問題的情況。在報告問題之前,請確保您正在使用WordPress和外掛的最新版本,以確保問題出現在當前版本而不是在舊版本中已經修復的問題中。
請不要使用評論部分來報告問題或請求新功能。
功能
在任何帖子或頁面上以條件標籤為基礎,在側邊欄或底部或任何其他位置顯示RSS源項目
在新窗口中打開鏈接(可選)
在每篇文章鏈接旁邊包含項目描述
文章標題鏈接是可選的。顯示純文字或鏈接到文章的即時提要鏈接
從本地RSS源中顯示精選圖像(亦稱“文章縮略圖”),或顯示遠程源的源標誌
自定義源緩存生存時間(默認最短43200秒/ 12小時)
此外掛使用WordPress的返回饋能力,從任何RSS源中獲取最後X個項目。顯示您選擇的任何RSS源的最後幾個項目。例如,您的Twitter源,或另一個輸出RSS源的博客或論壇。可以抓取任何RSS源。在頁腳中調用它以列出您最近的幾條推文,或在側邊欄中展示另一個博客的內容。
使用WordPress 2.8中引入的fetch_feed。在WordPress 3.5及以上版本中可以運行和測試。預設情況下,緩存12小時。您可以選擇較短(或較長)的緩存時間。
源項目包含在標籤中,類中為“jpgetrssfeed”,因此您可以在CSS文件中設置輸出風格。項目列表被包含在<ul></ul>標籤中,每個源項目都在<li></li>標籤中列出。但是,您可以指定一個新的CSS類來為不同的源設置不同的輸出樣式。
您可以將源項目描述與每個源項目鏈接一起輸出。
在帖子編輯器工具列中添加了一個按鈕,以便在文章或頁面中插入短碼。
通過以下方式獲得幫助:
https://codex.wordpress.org/Function_Reference/fetch_feed
短碼
要在任何帖子或頁面上顯示源,請使用以下短碼:
[jp-rss-feed]
安裝後請確保前往外掛設置頁面設置選項。
如果您使用和享用此插件,請給它評分並按下下面的“可用”按鈕,以便其他人知道它與最新版本的WordPress配合使用。
外掛標籤
開發者團隊
原文外掛簡介
Notice: Version 1.3.1 introduced admin menus for plugin settings. There is also a new way to pass parameters to the shortcode and PHP function. You should check all shortcodes and plugin function calls before and after upgrading, to confirm compatibility with this version.
If you need help with this plugin
If this plugin breaks your site or just flat out does not work, please go to Compatibility and click “Broken” after verifying your WordPress version and the version of the plugin you are using.
Then, create a thread in the Support forum with a description of the issue. Make sure you are using the latest version of WordPress and the plugin before reporting issues, to be sure that the issue is with the current version and not with an older version where the issue may have already been fixed.
Please do not use the Reviews section to report issues or request new features.
Features
Show RSS feed items on any post or page, in your sidebar or footer, or anywhere else using conditional tags in your PHP code
Open links in a new window (optional)
Include item description next to each article link
Post title link is optional. Show feed links as plain text or hyperlink to article
Show Featured Image (AKA “post thumbnails”) from local RSS feeds, or display feed logo for remote feeds
Customize feed cache lifetime (default minimum 43200 seconds / 12 hours)
This plugin uses WordPress’ ability to return feeds, to get the last X number of items from any RSS feed. Display the last few items from any RSS feed of your choice. For example, your Twitter feed, or another blog or forum that outputs a RSS feed. Any RSS feed can be grabbed. Call it in your footer to list your last few tweets, or your sidebar to showcase content from another one of your blogs.
Uses fetch_feed, which was introduced in WordPress 2.8. Works and tested in WordPress 3.5 and above. By default, feeds are cached for 12 hours. You can choose a shorter (or longer) cache time.
Feed items are wrapped in a div tag, with class “jpgetrssfeed” so you can style the output in your CSS file. The items list is surrounded by
tags, with each feed item listed in a
tag. However, you can specify a new CSS class to style output differently for different feeds.
You can output the feed item description along with each feed item link.
A button is added to the post editor toolbar so you can insert the shortcode in your posts or pages.
With help from:
https://codex.wordpress.org/Function_Reference/fetch_feed
Shortcode
To display a feed on any post or page, use this shortcode:
[jp-rss-feed]
Make sure you go to the plugin settings page after installing to set options.
If you use and enjoy this plugin, please rate it and click the “Works” button below so others know that it works with the latest version of WordPress.
