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

WP Pinboard

外掛說明

Adds a shortcode to display Pinboard.in bookmarks in your content, widgets, or templates. Public feeds can be filtered by usernames or tags.

URL Patterns

The URL patterns for public bookmarks look like this:

  • https://pinboard.in/u:username/
  • https://pinboard.in/t:tag/
  • https://pinboard.in/recent/
  • https://pinboard.in/popular/

You can filter bookmarks by combining a username with tags:

  • https://pinboard.in/u:username/t:tag1/t:tag2/

You can filter bookmarks by up to three tags:

  • https://pinboard.in/t:tag1/t:tag2/t:tag3/

Please note that the URL must begin with https://pinboard.in/.

Usage Examples

Basic Example:

[wp_pinboard]https://pinboard.in/u:username/[/wp_pinboard]

Advanced Example:

  • description: Whether to show of hide the description of the bookmark. Default ‘show’.
  • tags: Whether to show of hide the tags of the bookmark. Default ‘show’.
  • date: Whether to show of hide the date of the bookmark. Default ‘show’.
  • user: Whether to show of hide the username of the bookmark. Default ‘show’.
  • count: The number of bookmarks to display (max: 400). Default 20.
  • orderby: How to sort the bookmarks. Accepts ‘title’, ‘date’, or ‘random’. Default ‘date’.
    [wp_pinboard description=”show” tags=”show” user=”show” date=”show” count=”20″ orderby=”date”]https://pinboard.in/u:username/[/wp_pinboard]

Text Widget Example:

You can print bookmarks using a text widget like so:
[wp_pinboard]https://pinboard.in/u:username/[/wp_pinboard]

Template Example:

You can also print bookmarks directly in a template like so:

安裝方式

This section describes how to install the plugin and get it working.

  1. Upload the wp-pinboard/ directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

Does this plugin cache the list of bookmarks?

Yes, lists are cached for one hour. If necessary, you can manually refresh a list of bookmarks. Adding a get variable (?wppb-refresh=1) to the URL of a page will refresh the cache of any lists of bookmarks on that particular page.

使用者評論

2017 年 8 月 27 日 1 則留言
Used the shortcode in two sidebar widgets, it works, seems fine. I like the ability to change parameters (show/hide user, order by random, limit the no). Thank you!
閱讀全部 1 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0

  • First release.