PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. If
  4. Optional Content
Optional Content icon

Optional Content

This plugin makes it easy to conditionally display content. No more if statements in your template files!

By kylegetson·If·Free
5(2 reviews)
·40 active installs·Updated 14 years ago
DownloadVisit HomepageCompare

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.

5/52 reviews
40active installs
5.7K+total downloads
16 yearssince 2010

Overview

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…
Read full description on WordPress.org

Screenshots

Ratings & Reviews

52 reviews
5 ★
2
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress2.8.0+ requiredTested up to 3.1.4
PHPfalse+ required

Top Alternatives to Optional Content

VK Dynamic If Block icon
VK Dynamic If Block
53.0K+ installsUpdated 2 weeks ago
ViewCompare
If Shortcode icon
If Shortcode
5200 installsUpdated 1 year ago
ViewCompare
IF AS Shortcode icon
IF AS Shortcode
510 installsUpdated 1 year ago
ViewCompare
Conditions for Texts (Dynamic Content) icon
Conditions for Texts (Dynamic Content)
010 installsUpdated 7 years ago
ViewCompare
View all if plugins →

Frequently Asked Questions

Changelog

1.1

Fixed issues with selecting a user
Added the ability for multiple users
Now allows for shortcodes inside shortcodes

View full changelog on WordPress.org

Contributors

kylegetsonkylegetson
Plugin Info
Version
1.1
Last Updated
Jun 13, 2011
WP Requires
2.8.0+
Tested Up To
3.1.4
PHP Requires
false+
Active Installs
40
Downloads
5.7K+
Added
Mar 15, 2010
Business
Free

Tags

ifphpif elseoptional contentconditional content

Developer

K
kylegetson
2 plugins0.0M+ total installs
View all plugins →

Quick Compare

Optional Content vs VK Dynamic If Block→Optional Content vs If Shortcode→Optional Content vs IF AS Shortcode→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.