Wordpress plugins
Shortcode Variables

Shortcode Variables

Version : 1.7.4
Tested up to : 4.8.2
Number of download : 4945
Author : YeKen
Average rating : 5 / 5 on 12 votes 12 votes, 5 avg.rating

Screenshots

Shortcode Variables
Shortcode Variables
Shortcode Variables
Shortcode Variables

Do you want to use the same snippet throughout your site but only have to change the value in one location? If so, this plugin maybe just what you need. You can create your own Shortcodes and assign text, HTML, JavaScript, etc to it. You will then be given a shortcode such as: [shortcode-variables slug=”your-slug-name”] OR, even shorter syntax: [s-var slug=”your-slug-name”] You can embed this shortcode throughout your site and it will render the same content. Simply update the Shortcode Variable in Tools > Shortcode Variables and it will change throughout the site! ** Specify Parameters ** Specify your own parameters: You can now specify your own parameters when inserting a shortcode. For example, say you have a shortcode that renders a HTML table, you can now add parameters to the shortcode and specify where they appear in the shortcode e.g. [s-var slug=”render-table” border=”0″ background=”#FFFFFF” width=”50%” site-title=”YeKen”] to place each parameter within a shortcode use the following syntax %%background%%, %%width%%, etc. See below: Welcome to our site, %%site-title%%. ** Premade Shortcodes ** Comes with the following premade shortcodes: sc-todays-date – Displays today’s date. Default is UK format (DD/MM/YYYY). Format can be changed by adding the parameter format=”m/d/Y” onto the shortcode. Format syntax is based upon PHP date: http://php.net/manual/en/function.date.php sc-site-title – Displays the site title. sc-site-url – Displays the site URL. sc-page-title – Displays the page title. sc-admin-email – Displays the admin email address. sc-login-page – WordPress login page. Add the parameter “redirect” to specify where the user is taken after a successful login e.g. redirect=”http://www.google.co.uk”. sc-username – Display the logged in username. sc-user-id – Display the current user’s ID sc-user-ip – Display the current user’s IP address. sc-user-email – Display the current user’s email address. sc-username – Display the current user’s username. sc-first-name – Display the current user’s first name. sc-last-name – Display the current user’s last name. sc-display-name – Display the current user’s display name. sc-user-agent – Display the current user’s user agent Features: Insert the same piece of data, HTML, text, etc throughout your site and change in only one place. TinyMCE editor Place other WordPress shortcodes within yours Comes with a range of pre-made shortcodes Pass your own parameters into a shortcode Languages supported: English (UK) Need a translation? Email us: email@YeKen.uk Developed by YeKen.uk * Paypal Donate: email@YeKen.uk

Download now