Use conditional tags as shortcodes.
As of April 2026, WP Conditional Shortcodes is a WordPress shortcode plugin with 40 active installations and a 5/5 rating from 4 reviews. It has been downloaded 3.4K+ times in total. Requires WordPress 2.5+ and PHP false+. Available on WordPress.org since 2013. Last updated 13 years ago — may have compatibility concerns. Top alternative: WP Shortcodes Plugin — Shortcodes….
This plugin gives content developers shortcode equivalents to the conditional tags that WordPress provides for theme developments. Each shortcode only includes its contents if a certain condition is true. This allows them to modify what content is shown in any given context on a post-by-post basis. is_page, is_single and is_category allow specific pages, posts, categories to be specified by using the “ids” parameter.
The shortcodes and when they include contents are:
| WordPress | 2.5+ requiredTested up to 3.5.2 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.