A simple WordPress plugin that lets you toggle exactly one option on and off.
- Download to your Wordpress plugin folder.
- Activate plugin.
- Modify your template file where you want the switch to take effect. (See example below.)
- Toggle away.
How to use the shortcode
In your post type in something like this:
[wptoggler true="This text will be displayed when true" false="This text will be displayed when false"]
This will toggle the text in the post to your liking.
Example of how to use switch in template
This option is only meant for theme developers. If you put this somewhere in your template file to switch between the two states.
WPToggler is FALSE
WPToggler is TRUE