Shortcodes

Shortcodes banner

This add-on for Broadcast provides global and local shortcodes with user-generated content.

Global shortcodes are available throughout the network, and local shortcodes are available only on the blog they were created.

Local shortcodes can be quickly broadcasted to other blogs.

Screenshots

Notes

This add-on is Bulk Cloner aware and can export / import shortcodes. In order for local shortcodes to be shown in the export / import, you will have to set up the export settings on the blog which has the local shortcodes you wish to modify.

To allow other roles than just super-admin to modify the local shortcodes, use the broadcast_shortcodes_access filter.

There are some snippets showing how to replace the local shortcodes in the post during broadcasting.

Where to buy

This add-on is a part of the following packs:

Comments

  1. Can this be used to create templates where a short code is included in it and then each site adds a different value for that short code?
  2. @edward  When there is a conflict where there is a global shortcode and a local shortcode of the same name, would the local shortcode take precedent?  If not, how can I make that happen?   We want to be able to use global shortcodes as a fallback in our templates, and allow local shortcodes to override global if/when they are set.
    1. Currently, the local shortcodes are added first, then the global. A shortcode can only have one value, so the latest loaded shortcodes are used. So global has priority over local, although I suppose I could change that. I’ll have to add a filter to allow you, using a code snippet, to decide which shortcodes get loaded last?

  3. That would be amazing.. we definitely want local to override global :)  This way we can use a global shortcode in templates, but make customizations in the local environment if we want..

Leave a Reply

Your email address will not be published. Required fields are marked *