Use Shortcodes Anywhere
Menus, headers, footers and even the HTML <title> tag
Use Shortcodes Everywhere
Post excerpts, page titles, post titles, widgets, widget titles, custom fields, site title, description
Doesn’t matter if they’re from Jetpack, your theme, another plugin…use ’em!
Shortcodes can be added to Post Excerpts, Page Titles, Post Titles, Widgets, Widget Titles, Custom Fields, Site Title and Description, not just Pages and Posts as is already provided by WordPress itself. This allows Shortcodes to be used in Sidebars, Menus, Headers, Footers and even the HTML element that appears in the Title Bar of most browsers.
A Settings page includes checkboxes to select where Shortcodes might appear:
- In Post Excerpts, both manual and automatically-created Excerpts
- In Page and Post Titles
- In Browser Title Bar via
- In Widgets used in Sidebars, Menus, Headers, Footers, etc.
- In Widget Titles
- In Site Title, Description and other bloginfo options
- In Page or Post Custom Fields
Priority is an Advanced Setting beside each checkbox that controls the timing of the WordPress Filter associated with each Where? setting. This is provided solely to address conflicts with other themes and plugins that use the same WordPress Filter (“hook”).
A default Warning feature, which can be disabled on the Settings page, displays a message at the top of every Admin panel if the plugin is Activated but doing nothing because no Where? checkboxes are selected (other than the mandatory In Pages and In Posts settings).
All Shortcodes are supported by this plugin, no matter whether you are using Shortcodes defined by:
- WordPress itself, such as [gallery], [audio], [caption], or [video]
- Jetpack Shortcode Embeds
- Your Active Theme
- Another Plugin, for example,
Current Year and Copyright Shortcodes
- Writing your own Plugin and using the add_shortcode() function
- Using a Shortcode creation Plugin, for example, Shortcode Exec PHP
Future versions will include more areas of the WordPress web site where Shortcodes may be used, based on the needs of users of this Plugin.
No attempt has been made to allow Shortcodes to be used to display values in Admin panels. This is the default WordPress behaviour, and changing it may have unintended (negative) consequences.
Plugin Developers may find the Table-Driven Design of interest. This was a popular concept in the 1980s and was used in this plugin to simplify the use of WordPress Filters. The two-dimensional global array $jr_saoe_filters is the Table involved.
This plugin was created to satisfy a request from a user of the Current Year and Copyright Shortcodes plugin to use these Shortcodes in a Page Title.
Adoption Notice: This plugin was recently adopted by David Gewirtz and ongoing support and updates will continue. Feel free to visit David’s Lab Notes for additional details and to sign up for emailed news updates. Special thanks to Jon ‘jonradio’ Pearkins for creating the plugin and making adoption possible.
Use your shortcodes anywhere and everywhere you want!