[WordPress] 外掛分享: The Permalinker

首頁外掛目錄 › The Permalinker
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
460 天前
最後更新
問題解決
WordPress 2.6+ v1.9.0 上架:2009-06-29

內容簡介

使用短代碼動態鏈接到您的 WordPress 頁面和文章。您只需要 ID。在開發 WordPress 網站的內容時,這很方便。當從一個子目錄或域移到另一個時,不需要操作內容,使遷移更加清潔。

append、class、rel 和 target 屬性在 [permalink] 開始標籤中受到支持。參見常問問題解答 (FAQ)。您可以插入標記 %post_title%,以動態地將文章標題插入到錨點文字中(在開始和結束短代碼之間的內容)。

存在一個名為 [template_uri] 的短代碼,如果您想動態地獲取當前模板目錄的完整 URL,您可以使用它(通過頁面/文章編輯器添加模板捆綁的圖像和其他資源非常有用)。

範例 1:建立鏈接。

[permalink id=2 rel="internal"]查看我的最新文章,名為 %post_title%[/permalink] 或使用 `[permalink]這個鏈接[/permalink]` 來鏈接到此文章。

範例 2:輸出永久鏈接 URL。

<a href="[permalink]">;這篇文章。</a>;

範例 3:模板目錄 URI

<img src="[template_uri]/photos/me_grandma.jpg" alt="我和奶奶的照片" />

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.9.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「The Permalinker」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Use short codes to dynamically link to your WordPress pages and posts. All you need is the ID. This can come in handy when developing content for WordPress sites. Makes for a cleaner migration with no need to manipulate content when moving from one subdirectory or domain to another.
Attributes of append class, rel, and target are supported within the [permalink] opening tag. See FAQs. You can insert the token %post_title% to dynamically insert the post’s title into anchor text (content between the opening and closing shortcode).
A short code for [template_uri] exists if you’d like to dynamically grab the full URL to your current template directory (useful for adding images and other resources bundled in a template via the page/post editor).
Example 1: Create link.
[permalink id=2 rel="internal"]Check out my latest post named %post_title%[/permalink] or use `[permalink]this link[/permalink]` to link to this post.

Example 2: Output Permalink URL.
;This post.;

Example 3: Template Directory URI
A Photo of Me and My Grandma

延伸相關外掛

文章
Filter
Apply Filters
Mastodon