Title: Bookmarks Shortcode
Author: Shea Bunge
Published: <strong>2011 年 12 月 15 日</strong>
Last modified: 2020 年 12 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/bookmarks-shortcode.svg)

# Bookmarks Shortcode

 作者：[Shea Bunge](https://profiles.wordpress.org/bungeshea/)

[下载](https://downloads.wordpress.org/plugin/bookmarks-shortcode.zip)

 * [详情](https://cn.wordpress.org/plugins/bookmarks-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/bookmarks-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/bookmarks-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/bookmarks-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/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()](https://developer.wordpress.org/reference/functions/wp_list_bookmarks/)
function.
 Example: `[bookmarks show_images=0 show_ratings=1 show_name=1 ]`

[Contribute at GitHub](https://github.com/sheabunge/bookmarks-shortcode)

### 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](https://wordpress.org/plugins/code-snippets):

    ```
    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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Bookmarks Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Shea Bunge ](https://profiles.wordpress.org/bungeshea/)

[帮助将「Bookmarks Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/bookmarks-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/bookmarks-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/bookmarks-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/bookmarks-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/bookmarks-shortcode/)。

## 更新日志

#### 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()](https://codex.wordpress.org/Function_Reference/wp_list_bookmarks)
   function.

#### 1.0

 * Stable version release

## 额外信息

 *  版本 **2.3.1**
 *  最后更新：**6 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  PHP 版本 ** 5.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/bookmarks-shortcode/)
 * 标签
 * [blogroll](https://cn.wordpress.org/plugins/tags/blogroll/)[bookmarks](https://cn.wordpress.org/plugins/tags/bookmarks/)
   [links](https://cn.wordpress.org/plugins/tags/links/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/bookmarks-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/bookmarks-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/bookmarks-shortcode/reviews/)

## 贡献者

 *   [ Shea Bunge ](https://profiles.wordpress.org/bungeshea/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/bookmarks-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://sheabunge.com/donate)