WordPress plugin intelligence profile

Basic URL ShortCodes

Simple shortcodes that output essential WordPress URLs inside posts, pages and widgets.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version4.1.1
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 4.4 · PHP 7.0
Directory statusactive
Last directory update2 Nov 202618m ago
Active installations4K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Basic URL ShortCodes version 4.1.1 as active, updated 18m ago and tested up to WordPress 7.1.

Overview

About this plugin

Sometimes you need to display your website’s base URL, active theme URL or uploads folder URL directly inside your content editor.

Basic URL Shortcodes lets you insert important WordPress URLs using simple shortcodes inside posts, pages and widgets. Every shortcode accepts an optional path attribute so you can build a full URL in one go, and the output is escaped for you.

Available Shortcodes

[home_url]

The website’s home URL, as set in WordPress Settings.

Example: http://localhost/wp-demo

[site_url]

The URL where WordPress itself is installed. This differs from [home_url] when WordPress lives in a sub-directory.

Example: http://localhost/wp-demo/wp

[theme_url_template]

The URL of the currently active theme. Child themes are supported and return the child directory.

Example: http://localhost/wp-demo/wp-content/themes/mytheme

[parent_theme_url]

The URL of the parent theme, even when a child theme is active.

Example: http://localhost/wp-demo/wp-content/themes/parenttheme

[UPLOAD_URL] (also available as [upload_url] )

The base URL of the WordPress uploads directory.

Example: http://localhost/wp-demo/wp-content/uploads

[content_url]

The URL of the wp-content directory.

[plugins_url]

The URL of the plugins directory.

[admin_url]

The URL of the WordPress admin area.

php"]

[rest_url]

The base URL of the REST API.

Example: [rest_url path="wp/v2/posts"]

[login_url] and [logout_url]

Login and logout URLs, with an optional redirect attribute.

Example: [login_url redirect="http://localhost/wp-demo/account"]

[current_url]

The full URL of the page currently being viewed, query string included.

Attributes

path — appended to the URL. Works on every shortcode except `[login_url]`, `[logout_url]` and `[current_url]`.

Example: [home_url path="contact"] outputs http://localhost/wp-demo/contact

For safety, a path that starts with a scheme ( http: ), a protocol-relative prefix ( // ) or a backslash is ignored, so a shortcode can never be used to point at another site.

esc — set to `raw` to skip HTML entity encoding when the value is consumed by JavaScript rather than an `href`. Defaults to `html`.

Example: [home_url esc="raw"]

redirect — where to send the visitor after login or logout. Off-site targets are rejected.

Prefixed aliases

Short tags such as [home_url] are generic and another plugin may already own them. Every shortcode is therefore also registered with a burl_ prefix — [burl_home_url], [burl_upload_url], and so on — which is guaranteed not to clash. If a tag is already taken by another plugin, this plugin leaves it alone rather than overriding it.

These shortcodes are useful when building custom layouts, inserting dynamic links or when theme customization options are limited.

Lightweight, simple and fully compatible with modern WordPress editors.

License

This plugin uses the GPLv3 license.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • permalink
  • shortcode
  • theme
  • uploads
  • url
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 4.4 · PHP 7.0
Update activity2 Nov 202618m ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version4.1.04.1.1
WordPress compatibility7.0.47.1.4
WordPress requirement4.04.4
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.