
內容簡介
這個外掛動態地為每個註冊的文章型別添加了一系列有用的短代碼。這些短代碼可以用來返回網址,或生成與相關文章相關的 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!
外掛標籤
開發者團隊
原文外掛簡介
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!
