Title: Conditional Tags Shortcode
Author: shazdeh
Published: <strong>জানুৱাৰী 28, 2015</strong>
Last modified: মে’ 26, 2020

---

প্লাগিনৰ সন্ধান কৰক

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/conditional-tags-shortcode.svg)

# Conditional Tags Shortcode

 [shazdeh](https://profiles.wordpress.org/shazdeh/)-ৰ দ্বাৰা

[ডাউনল’ড কৰক](https://downloads.wordpress.org/plugin/conditional-tags-shortcode.zip)

 * [বিশদ বিৱৰণ](https://as.wordpress.org/plugins/conditional-tags-shortcode/#description)
 * [পৰ্য্যালোচনা](https://as.wordpress.org/plugins/conditional-tags-shortcode/#reviews)
 *  [ইনষ্টলেশ্যন](https://as.wordpress.org/plugins/conditional-tags-shortcode/#installation)
 * [বিকাশ](https://as.wordpress.org/plugins/conditional-tags-shortcode/#developers)

 [সাহায্য](https://wordpress.org/support/plugin/conditional-tags-shortcode/)

## বৰ্ণনা

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

#### Usage

You can use all the [conditional tags](https://codex.wordpress.org/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](https://wordpress.org/) [/
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]

## ইনষ্টলেশ্যন

 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!

## পৰ্য্যালোচনা

![](https://secure.gravatar.com/avatar/a790366fa6c15cb32ce4b1d394966884f896da397176b9df63af01430867f816?
s=60&d=retro&r=g)

### 󠀁[Brilliant](https://wordpress.org/support/topic/brilliant-591/)󠁿

 [Tina Hammar](https://profiles.wordpress.org/tina-hammar/) ছেপ্টেম্বৰ 3, 2016

Such a clever solution to create the code in a way that it doesn’t need to be updated
as it will accept all the conditional tags that wordpress provides. It will work
as long as wordpress don’t change their syntax …

 [ আটাই 2টা পৰ্য্যালোচনা পঢ়ক ](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/)

## অৱদানকাৰী আৰু বিকাশকাৰীসকল

“Conditional Tags Shortcode” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান
আগবঢ়াইছে।

অৱদানকাৰীসকল

 *   [ shazdeh ](https://profiles.wordpress.org/shazdeh/)

[আপোনাৰ ভাষাত “Conditional Tags Shortcode” অনুবাদ কৰক।](https://translate.wordpress.org/projects/wp-plugins/conditional-tags-shortcode)

### বিকাশৰ প্ৰতি আগ্ৰহী?

[ক’ড ব্ৰাউজ কৰক](https://plugins.trac.wordpress.org/browser/conditional-tags-shortcode/),
[SVN ৰিপজিটৰী](https://plugins.svn.wordpress.org/conditional-tags-shortcode/) চাওক
নাইবা [RSS](https://plugins.trac.wordpress.org/log/conditional-tags-shortcode/?limit=100&mode=stop_on_copy&format=rss)-
দ্বাৰা [বিকাশৰ পঞ্জী](https://plugins.trac.wordpress.org/log/conditional-tags-shortcode/)
ছাবস্ক্ৰাইব কৰক।

## মেটা

 *  **0.2** সংস্কৰণ
 *  **6 বছৰ আগত** শেষবাৰ আপডে’ট হৈছিল
 *  সক্ৰিয় ইনষ্টলেশ্যন **100+**
 *  WordPress-ৰ সংস্কৰণ ** 3.1 বা তাতকৈ ওপৰৰ **
 *  ইমানলৈকে পৰীক্ষা কৰা হৈছে **5.4.19**
 *  ভাষা
 * [English (US)](https://wordpress.org/plugins/conditional-tags-shortcode/)
 * [conditional](https://as.wordpress.org/plugins/tags/conditional/)[conditional-tags](https://as.wordpress.org/plugins/tags/conditional-tags/)
   [context](https://as.wordpress.org/plugins/tags/context/)[page](https://as.wordpress.org/plugins/tags/page/)
   [shortcode](https://as.wordpress.org/plugins/tags/shortcode/)
 *  টেগবোৰ
 *  [উচ্চখাপৰ ভিউ](https://as.wordpress.org/plugins/conditional-tags-shortcode/advanced/)

## ৰে’টিংবোৰ

 5টাৰ ভিতৰত 5টা তৰা।

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/conditional-tags-shortcode/reviews/)

## অৱদানকাৰীসকল

 *   [ shazdeh ](https://profiles.wordpress.org/shazdeh/)

## সাহায্য

কিবা ক’বলগীয়া আছে? সহায় লাগে?

 [সাহায্যৰ ফ’ৰাম চাওক](https://wordpress.org/support/plugin/conditional-tags-shortcode/)