Plugin info

Total downloads: 7,991
Active installs: 100
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 5/26/2020 (2045 days ago)
Added to WordPress: 1/28/2015 (10 years old)
Minimum WordPress version: 3.1
Tested up to WordPress version: 5.4.18
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2045 days ago • 2 reviews

22/100

Is Conditional Tags Shortcode abandoned?

Possibly abandoned (last update 2045 days ago).

Compatibility

Requires WordPress: 3.1
Tested up to: 5.4.18
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Conditional Menus
Rating 4.4/5 (72 reviews)Active installs 70,000
Widget Manager Light
Rating 3.8/5 (11 reviews)Active installs 700
Widget Logic Visual
Rating 2.7/5 (7 reviews)Active installs 200
Theme Logic
Rating 5.0/5 (3 reviews)Active installs 10
Widget Logic
Rating 4.4/5 (188 reviews)Active installs 100,000
Menu Item Visibility Control
Rating 4.5/5 (69 reviews)Active installs 10,000

Description

With this shortcode you can take control of where the content is displayed.

Usage

You can use all the conditional tags WordPress provides. Checkout examples below.

Show text only on the homepage:
[if is_front_page] The text [/if]

Show text only on the About page of the site:
[if is_page=”about”] The text [/if]

Show only on the category archive view:
[if is_category] The text [/if]

You can add “not_” before the conditional tag to reverse the logic, example:
Show on all pages of the site except the homepage:
[if not_is_front_page] The text [/if]

OR

Using multiple parameters, the content is displayed when either of the conditions are met (“OR” comparison), for example, show text on both category and tag archive pages:
[if is_category is_tag] The text [/if]

AND

To set multiple conditions you can nest the shortcode, for example show text only on homepage AND if the user is logged in:
[if is_user_logged_in][if is_front_page] The text [/if][/if]

Show a link to wordpress.org site, only on single post pages and only on mobile devices:
[if wp_is_mobile][if is_single] WordPress [/if][/if]

has_term_{taxonomy}

You can use this to check if the current post in the loops belongs to a custom term in the desired taxonomy. See: https://codex.wordpress.org/Function_Reference/has_term

Example, check if current post has the “jazz” term in the “genre” taxonomy:
[if has_term_genre=”jazz”] The text [/if]

Installation

  1. Upload the menu-item-visibility directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enjoy!

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available