內容簡介
Send2Press Newswire 是一個新聞稿推廣服務。他們提供所有新聞的 RSS 饋料,目前有約 90 種不同的饋料可用。這個外掛允許您在 WordPress 博客上輕鬆訪問這些饋料。可以顯示簡單的標題連結或包括 5-10 行摘要的完整內容。CSS 可用於自定義外觀和感覺。
請注意,儘管您可以對此外掛做任何您想做的事情,包括跳來跳去或餵食您的倉鼠,但在使用 Send2Press Newswire 內容和商標時有一定的限制。因此,在使用此外掛之前,請仔細閱讀服務條款,可以在網站 http://feeds.send2press.com/terms.shtml 或包含的文本文件 termsofuse.txt 上閱讀。
此外掛既可以作為小工具使用,也可以作為內容替換以及在主題中調用。支持任意數量的內容替換或主題調用,但此版本僅支持一個小工具實例。
對於小工具的使用,只需像其他小工具一樣使用小工具,選擇要顯示的饋料即可。對於內容替換,請在您的內容中插入以下一或多個字符串,它們將被相關新聞饋料替換。對於主題使用,請添加下面描述的 do_action 函数調用。
<!--send2press--> 用於預設饋料
<!--send2press#feedname-->
如果您使用的是 WordPress 2.5 或更高版本,則可以使用短碼,進行以下字串替換方法。
[send2press] 用於預設饋料
[send2press name="feedname"]
從主題調用外掛是通過 WP do_action() 系統完成的。如果禁用或刪除了插件,它將優雅地降級,不會產生錯誤或輸出。
<?php do_action('google_news'); ?> 用於預設饋料
<?php do_action('google_news', 'feedname'); ?>
啟用外掛後,進入“儀表板->設定”下的 Send2Press 頁面,閱讀初始信息。然後轉到“儀表板->管理”下的 Send2Press 頁面,配置一個或多個饋料。然後在內容或主題中使用小工具或插入相關的字符串。
其他信息:
可用的選項如下。
名稱:可選的饋料名稱,可用於小工具或內容替換字符串中引用特定饋料。沒有名稱的饋料被認為是“預設值”,如果替換字符串未引用特定饋料,則將使用此饋料。如果存在多個相同名稱的饋料,則每次使用時都會選擇其中一個。對預設饋料(們)也是如此。
標題:可選,如果設置,則將用於小工具標題或內容上方的新聞項目標題。如果標題為空,則使用預設標題“Send2Press: ”。
新聞類型:包含 Send2Press 中所有可用饋料的大下拉列表。
輸出類型:僅包含連結,或包括摘要的完整內容。
最大顯示項目數:從饋料顯示多少項目,0 為全部顯示。默認值為 10 項。
緩存時間:使用 WordPress 內置的 MagpieRSS 系統獲取饋料,可以在給定時間內進行饋料緩存。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Send2Press Newswire is a press release promotion service. They
provide RSS feeds of all their news, and currently there are about
90 different feeds available. This plugin allows easy access
to those feeds on your WordPress blog. Either as simple headline
links or complete with a 5-10 line summary. CSS can
be used to tailor the look and feel.
Please note that even though can do whatever you want with this
plugin, including jumping up and down on it or feeding it to your
hamster, there are restrictions on how you can use Send2Press
Newswire content and trademarks. So please read the terms of service
carefully before using this plugin, either on the web at
http://feeds.send2press.com/terms.shtml or the included text
file termsofuse.txt.
This plugin works both as a widget, as inline content
replacement and can be called from themes. Any number of
inline replacements or theme calls allowed, but only one
widget instance is supported in this release.
For widget use, simply use the widget as any other after
selecting which feed it should display. For inline content
replacement, insert the one or more of the following strings in
your content and they will be replaced by the relevant news feed.
For theme use, add the do_action function call described below.
for the default feed
Shortcodes can be used if you have WordPress 2.5 or above,
in which case these replacement methods are also available.
[send2press] for the default feed
[send2press name="feedname"]
Calling the plugin from a theme is done with the WP do_action()
system. This will degrade gracefully and not produce errors
or output if plugin is disabled or removed.
for the default feed
Enable plugin, go to the Send2Press page under
Dashboard->Settings and read the initial information. Then
go to the Send2Press page under Dashboard->Manage and
configure one or more feeds. Then use a widget or insert
relevant strings in your content or theme.
Additional information:
The available options are as follows.
Name: Optional feed name, that can be used in the
widget or the inline replacement string to reference
a specific feed. Any feed without a name is considered
“default” and will be used if the replacement strings do
not reference a specific feed. If there are more than
one feed with the same name, a random of these is picked
every time it is used. This also applies to the default
feed(s).
Title: Optional, which when set will be used in the
widget title or as a header above the news items when
inline. If the title is empty, then a default title
of “Send2Press :
News type: The big dropdown list, with all available
feeds from Send2Press.
Output Type: Links only, or complete with summary.
Max items to show: How many items from the feed to show, 0 for
all. The default is 10 items.
Cache time: The feeds are fetched using WordPress
builtin MagpieRSS system, which allows for caching of feeds
a given amount of time. Cached feeds are stored in
the backend database. There is a lower limit of two hours
imposed by Send2Press, but you can set it to something higher.
Cache time is in minutes.
If you want to change the look&feel, the inline table is
wrapped in a div with the id “send2press-inline” and the
widget is wrapped in an li with id “send2press”. Let me
know if you need more to properly skin it.
Download now!
Support
Donate
