This plugin gives content developers shortcode equivalents to the conditional tags that WordPress provides for theme developments.
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.
The new shortcodes and when they include contents are:
Each shortcode also allows has an "else" shortcode that can go inside it. For example:
[is_single]
This is only shown if showing just this post.
[not_single]
This is shown everywhere else.
[/is_single]
In general, the "else" shortcode is just replacing "is" with "not". The one exception is "not_comments_open" as the "else" shortcode for "comments_open".
Whichever chunk of content is included is processed for shortcodes, so you can use all your other shortcodes and even nest these if you need to.
Requires: 2.5 or higher
Compatible up to: 2.9.2
Last Updated: 2010-4-17
Downloads: 650
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?