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

WP Links Shortcode

外掛說明

This plugin makes it easy to output a list of Links on any WordPress Post, Page, or other Custom Post Type. The shortcode uses the
WordPress native wp_list_bookmarks function call to output the list. All native function arguments are available to the shortcode.

For more information on this plugin and support for this plugin, visit WP Links Shortcode on O3.

Usage

Simply add the following shortcode to a Post or Page:

[wp_list_bookmarks]

The following parameters are available, defaults in parenthesis:

  • categorize (true)
  • category (all categories)
  • exclude_category (none)
  • category_name (none)
  • category_before (<li id="[category id]" class="linkcat">)
  • category_after (</li>)
  • class (linkcat)
  • category_orderby (name)
  • category_order (ASC)
  • title_li (Bookmarks)
  • title_before (<h2>)
  • title_after ()
  • show_private (false)
  • include (none)
  • exclude (none)
  • orderby (name)
  • order (ASC)
  • limit (-1)
  • before (<li>)
  • after (</li>)
  • link_before (none)
  • link_after (none)
  • between (<br />)
  • show_images (true)
  • show_description (false)
  • show_name (false)
  • show_rating (false)
  • show_updated (false)
  • hide_invisible (true)

For a full list of arguments and their available options, visit the wp_list_bookmarks function on the Codex.

安裝方式

  1. Download the plugin from the WordPress Repository or Upload to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the [wp_list_bookmarks] shortcode in your posts or pages

常見問題集

  1. Using all of the defaults, my category name has a bullet next to it. How do I get rid of this? This is a default value of the wp_list_bookmarks function. To remove it, add the category_before = '' and category_after = '' shortcodes. Your call should looks like this: [wp_list_bookmarks category_before = '' category_after = '']
  2. Using all of the defaults, the description doesn’t show. How do I add it? Use the show_description = true parameter. Your call should look like this: [wp_list_bookmarks show_description = true
  3. Where can I find more details about all of the available parameters? On the wp_list_bookmarks Codex Page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WP Links Shortcode〉的開發相關工作。

參與者

將〈WP Links Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial Release