• Hi folks,

    I recently wrote a small plugin to use on my site. Basically I was referring to the same block of text, price etc across my site. However, every now and then I would need to change that text. This meant searching through my pages and sidebars… changing and saving.

    So I wrote a small plugin called “Shortcode Variables”. In essence, it allows me to specify a key and a block of text / HTML. For example, say I wanted to display the same price throughout my site, I could set the following shortcode variable up:

    example-price = £23.99

    This would give me a Shortcode like:

    [shortcode-variables slug=”example-price “]

    I can place this shortcode where I wish and it will be replaced by £23.99. The plugin supports HTML, rich text, etc.

    Let me know what you think! Be nice! lol

    https://ww.wp.xz.cn/plugins/shortcode-variables/

The topic ‘New Plugin: Shortcode Variables’ is closed to new replies.