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

Bookmarks Shortcode

描述

Creates three shortcodes – [bookmarks], [links] and [blogroll] – that will generate an unordered list of your WordPress links.
Preforms the same function as wp_list_bookmarks().

You can any of the shortcodes within a post, page, media, text widget, etc.
This makes it much more flexible then using the default Links page template that may be included in your theme as you can add other content surrounding the list, also when you change themes there is no need to edit the page.

You can customize the output of the list by using the same arguments that are accepted by the wp_list_bookmarks() function.
Example: [bookmarks show_images=0 show_ratings=1 show_name=1 ]

Contribute at GitHub

Update Notice

2.2

Improved default bookmarks markup

安裝

  1. Upload bookmarks-shortcode.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the (Plugins > Installed Plugins) menu in WordPress
  3. Use the [bookmarks], [links] or [blogroll] shortcodes in any of your posts, pages or widgets.

常見問題

My theme includes a links page template. Why do I need this plugin?

This plugin is more flexible then the Links page template. You can use any of the three shortcodes within a post, page, text widget, media, etc. You can also add other content surrounding the list, also when you change themes there is no need to edit the page.

Can I use the shortcodes in text widgets?

If you wish to use these shortcodes in the sidebar text widgets, add this code to a site-specific plugin or as a code snippet:

add_filter( 'widget_text', 'shortcode_unautop' );
add_filter( 'widget_text', 'do_shortcode' );

Keep in mind that doing this will allow you to use all shortcodes in text widgets, not only the ones added by this plugin

評價

There are no reviews for this plugin.

貢獻者及開發者

“Bookmarks Shortcode” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Bookmarks Shortcode 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

2.3.1

  • Fixed regression if strings are passed as shortcode attributes

2.3

  • Remove argument parsing from shortcode callback

2.2

  • Instead of using output buffering, set wp_list_bookmarks’s echo parameter
  • Provide default arguments for the wp_list_bookmarks() function

2.1

  • Improved code structure
  • Removed ‘allow shortcodes in text widgets’ functionality. To add this back, see the FAQ
  • Switched to MIT license

2.0

  • Added [blogroll] and [links] shortcodes
  • Fixed a bug with the page content always being after the bookmarks
  • Shortcodes can now be used in text widgets
  • Checks if shortcode exists before registering shortcode
  • Accepts the same arguments as the wp_list_bookmarks() function.

1.0

  • Stable version release