Shortcodes Anywhere or Everywhere

0

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

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

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 , , , or
  • 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.