Basic URL ShortCodes

Описание

Sometimes you want to put the base URL (that of the blog, or that of the active template) in your content editor. Times when the template customising isn’t quite flexible enough.
With this plugin you can use [home_url] to output the base URL of the blog (as set in your Settings). Or, you can use [theme_url_template] to output the URL of the active template.

For example <img src="[home_url]/test.png" /> in your editor might output <img src="http://localhost/wp-demo/test.png" /> (if http://localhost/wp-demo is what you have configured as your blog URL in Settings).

The supported short codes are as follows:
* [home_url] — the configured blog URL (set in Settings). E.g. http://localhost/wp-demo
* [theme_url_template] — the URL of the active template. E.g. http://localhost/wp-demo/wp-content/themes/mytheme

License

This plugin uses the GPLv3 license.

Скриншоты

  • Sample short code use.
  • Rendered output.

Установка

Use WordPress Add New Plugin feature, searching «BASIC URL ShortCodes», or download the archive and:

  1. Unzip the archive on your computer
  2. Upload basic-url-shortcodes directory to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Use shortcode & enjoy

Часто задаваемые вопросы

There are no FAQs at this time. Feel free to suggest some!

Отзывы

Посмотреть 1 отзыв

Участники и разработчики

«Basic URL ShortCodes» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Basic URL ShortCodes» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.