Use shortcodes for conditional logic based on post meta or taxonomy terms.
As of April 2026, Logic Shortcodes is a WordPress term plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.5K+ times in total. Requires WordPress 2.5.0+ and PHP false+. Available on WordPress.org since 2016. Last updated 9 years ago — may have compatibility concerns. Top alternative: Simple Taxonomy Ordering.
This plugin enables the use of [if] shortcodes to work with conditional logic based on the existence of post meta or taxonomy terms on posts and pages.
Please consider taking a minute to rate the plugin or let me know any feature request. Thanks!
With conditional logic for taxonomy terms, you can use names, slugs or term_ids:
Post meta (or custom field) logic can be used to check if a certain meta_key AND meta_value combination are present or just a meta_key:
| WordPress | 2.5.0+ requiredTested up to 5.4.19 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.