This plugin makes it easy to conditionally display content. No more if statements in your template files!
As of April 2026, Optional Content is a WordPress if plugin with 40 active installations and a 5/5 rating from 2 reviews. It has been downloaded 5.7K+ times in total. Requires WordPress 2.8.0+ and PHP false+. Available on WordPress.org since 2010. Last updated 14 years ago — may have compatibility concerns. Top alternative: VK Dynamic If Block.
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:
| WordPress | 2.8.0+ requiredTested up to 3.1.4 |
| PHP | false+ required |
Fixed issues with selecting a user
Added the ability for multiple users
Now allows for shortcodes inside shortcodes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.