Using WordPress Custom Global Variable you can create your own short codes and gets its values.
WordPress Custom Global Variable Download Now
(If the link does not work)↓
Originals Link WordPress.org
https://wordpress.org/plugins/wp-global-variable/
Best WordPress Hosting, GO link
How to Install WordPress Custom Global Variable Plugin, Manually
- Copy the entire /global-variable/ directory into your /wp-content/plugins/ directory.
- Activate the plugin.
- New Tab called Custom Variable will be generated.
- You can add new variable.
- Use short code at any pages/posts e.g.[global_variable variable_name=’TEST1′] or in Code
<?php if(function_exists('define_variable') || function_exists('global_variable_func')) { if(defined('TEST1')) { echo TEST1; } } ?>
OR
<?php echo do_shortcode('[global_variable variable_name="TEST1"]');?>
Video
Screenshots
Plugin Not Working?
If any errors or problems with the plug-in then write comments.
Leave a Reply