Shortcodes Anywhere or Everywhere

Mô tả

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.

Cài đặt

This section describes how to install the jonradio Shortcodes Anywhere or Everywhere plugin and get it working.

  1. Use Add Plugin within the WordPress Admin panel to download and install this jonradio Shortcodes Anywhere or Everywhere plugin from the WordPress.org plugin repository (preferred method). Or download and unzip this plugin, then upload the /jonradio-shortcodes-anywhere-or-everywhere/ directory to your WordPress web site’s /wp-content/plugins/ directory.
  2. Activate the jonradio Shortcodes Anywhere or Everywhere plugin through the Installed Plugins Admin panel in WordPress. If you have a WordPress Network (“Multisite”), you can either Network Activate this plugin through the Installed Plugins Network Admin panel, or Activate it individually on the sites where you wish to use it. Activating on individual sites within a Network avoids some of the confusion created by WordPress’ hiding of Network Activated plugins on the Plugin menu of individual sites. Alternatively, to avoid this confusion, you can install the jonradio Reveal Network Activated Plugins plugin.
  3. View the Settings page, either by clicking on the Settings link in the entry for this plugin shown in the Installed Plugins Admin panel in WordPress, or from the Admin menu, Settings-Shortcodes Anywhere or Everywhere.
  4. Select where Shortcodes will be used, and click the Save Changes button.

Đánh giá

21 Tháng chín, 2022
I had been searching for a way to display my custom field data in titles and could not find an easy solution. This plugin worked like a charm. Thank you for your work!
17 Tháng tư, 2022
This plug-in conflicted with elementor and rendered my website css-less. Work on this.
15 Tháng tám, 2021
Oh yeah ! After hours…. looking for light solution (!= coding into functions.php nor mega huge multi shortcodes plugins…) to make CF Internal Link Shortcode (https://fr.wordpress.org/plugins/internal-link-shortcode/) be parsed into woocommerce products short description I found YOU! Many thanks David for this small GREAT plugin. Et surtout, bonne suite!
4 Tháng tư, 2020
I never left a review to any plugin out there before, but this plugin force me to leave a review. It has alot of conflicts with every theme. Wasted a lot of time just to find what was breaking the page. If you want to create a page in elementor or want to use any other page builder out there, don’t use this plugin. 1 star review.
26 Tháng mười, 2019
Causes WAY too many conflicts with plugins that are actually important to me. Not recommended (unless you like debugging other people’s mistakes).
Đọc tất cả 15 đánh giá

Người đóng góp & Lập trình viên

“Shortcodes Anywhere or Everywhere” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi

1.4.3

  • Remove translation from get_plugin_data() for WordPress 6.7 compatibility
  • Correct corrupt Settings, if found

1.4.2

  • Minor support update

1.4.1

  • Error messages added for invalid Priority values on Settings page

1.4

  • Add a Priority setting for each Filter in the Where? section

1.3.1

  • Add Recommendations to Settings page for multiple Settings for “same thing”, i.e. – Titles and Post Excerpts

1.3

  • Support Shortcodes in Post Excerpts, both those manually and automatically created

1.2

  • Support Shortcodes in Custom Fields: Page and Posts only, using get_post_metadata filter

1.1

  • Support Shortcodes in Titles, Widgets, Widget Titles, Site Title/Description, including <title>
  • Settings Page to turn each Filter used on and off, and to show Pages and Posts as always on
  • Warning when nothing selected

1.0

  • Beta Version