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

Peter’s Blog URL Shortcodes

描述

Adds shortcodes [blogurl], [posturl], [templateurl], and [childtemplateurl] for WordPress 2.6 and up. Use [blogurl] to generate your site URL. It offers the parameters “slash” and “noslash” (to add a trailing slash; [templateurl] and [childtemplateurl] also support this), as well as “uploads” to produce the URL of the uploads folder and “wordpress” to produce the URL of your WP files. Use [posturl id=3] (replace “3” with a post ID) to generate the permalink for any post.

Features

  • [blogurl] will generate http://www.yoursite.com/

  • [blogurl wordpress] will generate the URL to the root of your WordPress files, if they are in a different location than your site root

  • [blogurl noslash] will generate http://www.yoursite.com

  • [blogurl uploads] will generate http://www.yoursite.com/wp-content/uploads/

  • [blogurl uploads noslash] will generate http://www.yoursite.com/wp-content/uploads

  • [posturl id=375] will generate the correct permalink for the post with an ID of 375; for example, <a href=”[posturl id=375]”>post about this plugin</a> would generate post about this plugin

  • [templateurl] will generate the URL to your parent theme’s root

  • [childtemplateurl] will generate the URL to your child theme’s root

Requirements

  • WordPress 2.6 or higher

安裝

Unzip blog_url_shortcodes.php to your WordPress plugins folder. It should work out of the box, but you can tweak some settings in the plugin file itself if needed.

常見問題

Please visit the plugin page at http://www.theblog.ca/blog-url-shortcodes with any questions.

Installation Instructions

Unzip blog_url_shortcodes.php to your WordPress plugins folder. It should work out of the box, but you can tweak some settings in the plugin file itself if needed.

評價

閱讀全部2個評價

貢獻者及開發者

“Peter’s Blog URL Shortcodes” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Peter’s Blog URL Shortcodes 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄