
內容簡介
這個外掛是用來新增簡寫代碼 [a] 並取代 HTML 標籤 <a>。它的主要功能是簡化內部連結。現在你不需要擔心更改永久網址或在文章或頁面中修正永久網址的外觀。你只需在簡寫代碼中貼上文章或頁面的 ID,外掛就會替你處理一切。當開啟文章或頁面時,簡寫代碼會根據貼上的 ID 渲染出所連結文章或頁面的永久網址和標題。
用法
基本用法:[a {post_ID}] 範例:[a 123] 回傳:<a href="{post_permalink}">{post_title}</a>
自定義連結文字:[a {post_ID}]{link}[/a] 範例:[a 123]Example Post[/a] 回傳:<a href="{post_permalink}">Example Post</a>
外部連結:[a {url}]{link}[/a] 範例:[a http://example.com]Example Link[/a] 回傳:<a href="http://example.com">Example Link</a>
其他參數:[a {post_ID} {param_name}="{param_value}"] 範例:[a 123 target="_blank"] 回傳:<a href="{post_permalink}" target="_blank">{post_title}</a>
外掛標籤
開發者團隊
原文外掛簡介
This plugin adds the shortcode [a] to replace html tag. Its primary function is to simplify internal linking. Now you don’t need to worry about changing the permalinks and correcting the appearance of the permalink in your posts/pages. You can only paste ID of post/page into the shortcode and the plugin will handle everything for you. When opening a post/page the shortcode renders the permalinks and titles of linked posts/pages based on the pasted IDs.
Usage
Basic: [a {post_ID}] Example: [a 123] Returns: {post_title}
Custom link text: [a {post_ID}]{link}[/a] Example: [a 123]Example Post[/a] Returns: Example Post
External link: [a {url}]{link}[/a] Example: [a http://example.com]Example Link[/a] Returns: Example Link
Additional parameters: [a {post_ID} {param_name}="{param_value}"] Example: [a 123 target="_blank"] Returns: {post_title}
