[WordPress] 外掛分享: Post Link Shortcodes

首頁外掛目錄 › Post Link Shortcodes
WordPress 外掛 Post Link Shortcodes 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(2 則評價)
2343 天前
最後更新
問題解決
WordPress 3.6+ v0.4.1 上架:2013-08-26

內容簡介

這個外掛動態地為每個註冊的文章型別添加了一系列有用的短代碼。這些短代碼可以用來返回網址,或生成與相關文章相關的 HTML 元素,例如鏈接和圖像!

每個文章型別都會創建 2 個短代碼,其中 {type} 是文章型別的名稱。例如:post 或 page

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

如果文章型別是使用 has_archive 註冊的,還會創建兩個短代碼:

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

版本 0.4.0 新功能:
如果文章型別支援 thumbnail(特色圖片),還會創建兩個短代碼:
[{type}_src]
[{type}_img]

版本 0.4.0 新功能:
附件短代碼
[attachment_src]
[attachment_img]

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

更多信息和示例: 閱讀文檔

更多

在 GitHub 上查看 Post Link Shortcodes!

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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
More
Post Link Shortcodes on GitHub!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon