Title: Post Link Shortcodes
Author: Evan Mattson
Published: <strong>2013 年 8 月 27 日</strong>
Last modified: 2019 年 10 月 19 日

---

搜尋外掛

![](https://ps.w.org/post-link-shortcodes/assets/banner-772x250.jpg?rev=1196653)

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

![](https://ps.w.org/post-link-shortcodes/assets/icon-256x256.jpg?rev=1196653)

# Post Link Shortcodes

 由 [Evan Mattson](https://profiles.wordpress.org/aaemnnosttv/) 開發

[下載](https://downloads.wordpress.org/plugin/post-link-shortcodes.0.4.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/post-link-shortcodes/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/post-link-shortcodes/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/post-link-shortcodes/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/post-link-shortcodes/#developers)

 [技術支援](https://wordpress.org/support/plugin/post-link-shortcodes/)

## 外掛說明

This plugin dynamically adds a collection of helpful shortcodes for each registered
post type. These shortcodes can be used to return URLs, or generate HTML elements
like anchors and images to the related post!

Each post type will have 2 shortcodes created for it where `{type}` is the name 
of the post type. Eg: `post` or `page`

    ```
    [{type}_url]
    [{type}_link]
    ```

If the post type was registered with `has_archive`, two more shortcodes will also
be created:

    ```
    [{type}_archive_url]
    [{type}_archive_link]
    ```

**NEW in 0.4.0:**
 If the post type supports `thumbnail` (featured images) two more
shortcodes will also be created: [{type}_src] [{type}_img]

**NEW in 0.4.0:**
 Attachment shortcodes [attachment_src] [attachment_img]

    ```
    [post_src hello-world]
    [post_img hello-world size=medium]
    ```

**For more information and examples: [Read the Documentation](https://github.com/aaemnnosttv/post-link-shortcodes/wiki)**

### More

[Post Link Shortcodes on GitHub!](https://github.com/aaemnnosttv/Post-Link-Shortcodes)

## 螢幕擷圖

 * [[
 * Basic usage. Source shortcode, with html-escaped output in blue.
 * [[
 * Post thumbnail usage. Works for any post type which supports post thumbnails 
   as well as attachments. Source shortcode, with html-escaped output in blue.
 * [[
 * Attachment examples. Source shortcode, with html-escaped output in blue.

## 安裝方式

 1. Upload the `post-link-shortcodes` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 使用者評論

![](https://secure.gravatar.com/avatar/25e1a73961052a1fc288f15e37f698976e7799196390c0ac1ff54f4314aa1955?
s=60&d=retro&r=g)

### 󠀁[Great plugin, save time](https://wordpress.org/support/topic/great-plugin-save-time/)󠁿

 [betagoo](https://profiles.wordpress.org/betagoo/) 2017 年 7 月 13 日 1 則留言

Great plugin, save time

![](https://secure.gravatar.com/avatar/42671dfa029a5b8a4ff1e9bff47a1e4b8b340ea3589485b06629a9b1512ce6c0?
s=60&d=retro&r=g)

 [Mike Zielonka](https://profiles.wordpress.org/mikezielonka/) 2016 年 9 月 3 日

Post Link Shortcodes makes it so much easier for users to create links.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/)

## 參與者及開發者

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

參與者

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

[將〈Post Link Shortcodes〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/post-link-shortcodes)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/post-link-shortcodes/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/post-link-shortcodes/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/post-link-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/post-link-shortcodes/)。

## 變更記錄

#### 0.4.1

 * FIXED: Unregistered `{type}_archive_url` shortcode

#### 0.4.0

 * NEW: `attachment_src` and `attachment_img` shortcodes
 * NEW: `{type}_src` and `{type}_img` shortcodes for types that support post thumbnails
 * NEW: added filters
 * Various improvements and optimizations under the hood
 * Added support for boolean html attributes

#### 0.3.1

 * Fix a bug where a shortcode would return data for the current page/post when 
   searching for a target post by a slug that does not or no longer exists.

#### 0.3

 * Aliases introduced

#### 0.2

 * Initial release!

## 中繼資料

 *  版本 **0.4.1**
 *  最後更新 **7 年前**
 *  啟用安裝數 **40+**
 *  WordPress 版本需求 ** 3.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.2.24**
 *  語言
 * [English (US)](https://wordpress.org/plugins/post-link-shortcodes/)
 * 標籤:
 * [custom post type](https://tw.wordpress.org/plugins/tags/custom-post-type/)[post link](https://tw.wordpress.org/plugins/tags/post-link/)
   [post url](https://tw.wordpress.org/plugins/tags/post-url/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/post-link-shortcodes/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/post-link-shortcodes/reviews/)

## 參與者

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/post-link-shortcodes/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LRA4JZYALHX82)