WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Shortcodes Anywhere or Everywhere

Allows Shortcodes to be used nearly everywhere, not just in posts and pages.

IMPORTANT: Support has moved to the ZATZLabs site and is no longer provided on the WordPress.org forums. Please visit the new ZATZLabs Forums. If you need a timely reply from the developer, please open a ticket.

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 <title> 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 <title>
  • 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], [embed] 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.

Tags: ,

Requires: 3.1 or higher
Compatible up to: 4.6.2
Last Updated: 4 months ago
Active Installs: 1,000+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2