
Optional Content
by kylegetson on WordPress.org
This plugin makes it easy to conditionally display content. No more if statements in your template files!
(2)

The editor button
This plugin allows you to show or hide content on a page or post based on a simple shortcode. You don’t need PHP knowledge, or a PHP enabling plugin. Simply use a button on the WYSIWYG editor to select under what condition you would like the content displayed. Fast, simple, and safe. Keep your template files clean by removing your PHP logic. Now allows shortcodes inside of the conditional content.
Display content based on the following conditions:
- Manual on/off setting
- Before, after, or between specific times (repeated daily)
- Before, after or between specific dates
- Based on if the visitor is logged in
- Based on a specific user (by user id) or multiple users (by user id)
- Based on GET variables (variables passed on the URL in the form of http://www.example.com/about/?test=value where the variable is ‘test’)
- Based on POST variables (variables sent via forms)
- Based on REQUEST variables (either GET or POST variables)
Active installations50+
Weekly downloads
17+41.67%
Version1.1
Last updated6/13/2011
WordPress version2.8.0
Tested up to3.1.4
Tags
conditional contentifif elseoptional contentphp