Linux 软件免费装

Home Url

开发者 Joshua Garner
更新时间 2011年1月11日 04:31
捐献地址: 去捐款
PHP版本: 3.0.0 及以上
WordPress版本: 3.0.4

标签

shortcode relative urls home_url relative links

下载

1.0.0

详情介绍:

Enables you to use the home_url() function(http://codex.wordpress.org/Function_Reference/home_url) when HTML editing. This allows you to easily manage relative urls. The home_url template tag retrieves the home url for the current site. Returns the 'home' option with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise. If scheme is 'http' or 'https', is_ssl() is overridden. How to use: [home-url path= scheme=] path (string) (optional) Path relative to the home url. Default: '/' scheme (string) (optional) Scheme to give the home url context. Currently 'http','https'. Default: null Examples: [home-url] -> http://www.mydomain.com/ [home-url path="about"] -> http://www.mydomain.com/about [home-url path="blog/category/news"] -> http://www.mydomain.com/blog/category/news

安装:

  1. Copy the entire directory from the downloaded zip file into the /wp-content/plugins/ folder.
  2. Activate the "Home Url" plugin in the Plugin Management page.
  3. Add the shortcode [home-url path="your page"] to the page(s) of your choice.

更新日志:

1.0.0