Enables you to use home_url() function with a shortcode when HTML editing.
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
Requires: 3.0.0 or higher
Compatible up to: 3.0.5
Last Updated: 2011-1-10
Downloads: 713
Got something to say? Need help?