這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Show articles by keyword

描述

Sometimes you want to point your visitors/readers on other posts covering a specific topic.

You can either have this coded the hard way in your theme or use a plugin which will always show related articles, but what if you only want this to happen sometimes?

This plugin gives you a shortcode to insert in posts where you want to display a number of related posts. They will be shown with headline and date (optional) and can be styled via CSS.

Donations

If you find this plugin to be very useful it would be really kind if you donate a few bucks via PayPal (zahlungen@flomei.de).

Otherwise I really appreciate if you simply spread the word about this plugin or link back to www.flomei.de. 🙂

螢幕截圖

  • Simple shortcode turns to output (styleable via CSS)

安裝

  1. Upload show_articles_by_keyword.php to the /wp-content/plugins/ directory or install the plugin from the ‘Plugins’ menu in the WordPress backend
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. You can now use the shortcode [show_articles keyword=X num=Y] where X is the keyword to look for (no quotes needed) and Y is the number of articles to fetch (standard: 5).
  4. Additional parameters: showdate can be set to yes (default) or no to show the post date inline with the headline. order can be set to date (default) or rand to order posts either by the post date or randomly.
  5. Note beside: You can also use the shortcode while developing a theme and fill it with dynamically fetched keywords. Have a look at do_shortcode for that (https://codex.wordpress.org/Function_Reference/do_shortcode).

常見問題

How can I style the output?

Every entry is wrapped in a section-element with the class abk. The headline (with or without date) is wrapped in a span-element with the class abk_h. This way you can easily style the related articles output.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Show articles by keyword” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Show articles by keyword 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0 (2014-03-18) First relase – Seems to work as supposed, could not find any bugs so far.