Do you want to use the same snippet of text or HTML throughout your site but only have to change the value in one location? If so, this plugin maybe just what you need.
[ sv slug="your-slug-name"]
- Create a shortcode once and place in multiple locations.
- Update the shortcode in one location and it changes throughout your site.
- Parameters to extend your shortcodes.
- Free and Premium helper shortcodes to make life easier.
- Multi-site support (a license is required for each site).
- Process shortcodes within WordPress menu titles
In some cases you may wish to make your shortcodes more extendable. This is where parameters come in. For example, you may have a shortcode that renders a HTML table, however, depending on where you place that shortcode on your site, you may wish to specify additional arguments. Take the example below, you can see the additional arguments passed into shortcode, “border”, “background” etc.
[ sv slug="render-table" border="0" background="#FFFFFF" width="50%" site-title="YeKen"]
Each argument can be rendered into the shortcode in the with the following syntax %%background%%, %%width%%, etc. Below is an example:
|<table border=”%%border%%” style=”background:%%background%%” width=”%%width%%”>|
<td>Welcome to our site, %%site-title%%.</td>