Title: WP Conditional Shortcodes
Author: TomHarrigan
Published: <strong>ফেব্রুয়ারি 8, 2013</strong>
Last modified: ফেব্রুয়ারি 27, 2013

---

প্লাগিন অনুসন্ধান

এই প্লাগইনটি **ওয়ার্ডপ্রেসের সর্বশেষ ৩টি মেজর রিলিজের সাথে পরীক্ষা করা হয়নি**। এটি
আর রক্ষণাবেক্ষণ বা সমর্থন করা নাও হতে পারে এবং ওয়ার্ডপ্রেসের আরও সাম্প্রতিক সংস্করণগুলোর
সাথে ব্যবহার করার সময় কম্প্যাটিবিলিটি ইস্যু থাকতে পারে।

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

# WP Conditional Shortcodes

 তৈরি করেছেন [TomHarrigan](https://profiles.wordpress.org/tomharrigan/)

[Download](https://downloads.wordpress.org/plugin/wp-conditional-shortcodes.zip)

 * [বিস্তারিত](https://bn.wordpress.org/plugins/wp-conditional-shortcodes/#description)
 * [রিভিউ](https://bn.wordpress.org/plugins/wp-conditional-shortcodes/#reviews)
 *  [ইন্সটলেশন](https://bn.wordpress.org/plugins/wp-conditional-shortcodes/#installation)
 * [ডেভেলপমেন্ট](https://bn.wordpress.org/plugins/wp-conditional-shortcodes/#developers)

 [Support](https://wordpress.org/support/plugin/wp-conditional-shortcodes/)

## Description

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:

 * is_single – if showing a single post. Use the optional parameter “ids” to specify
   specific posts.
 * is_singular – if showing a single post or page.
 * is_page – if showing a page. Use the optional parameter “ids” to specify specific
   pages.
 * is_home – if showing the blog home.
 * is_front_page – if showing the front page of the site.
 * is_sticky – if the current post or page is ‘sticky’.
 * is_category – if showing a category-based archive. Use the optional parameter“
   ids” to specify specific categories.
 * is_page – if showing a page.
 * is_tag – if showing a tag-based archive.
 * is_tax – if showing a tag- or category-based archive.
 * is_author – if showing an author-based archive.
 * is_archive – if showing any archive.
 * is_year – if showing a yearly archive.
 * is_month – if showing a monthly archive.
 * is_day – if showing a daily archive.
 * is_time – if showing an hourly or shorter archive.
 * is_feed – if generating a feed.
 * is_search – if showing search results.
 * comments_open – if comments are open for the current post or page.

Each shortcode also 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]
    ```

The is_page, is_category and is_single shortcodes allow you to specify pages, categories,
posts on which to show the content if you’d like to only show content within the
shortcode on specific pages, posts or categories.

    ```
    [is_page ids="76, 339"]hello[/is_page]

    [is_category ids="5, 7"]hello[/is_page]

    [is_single ids="94, 63"]hello[/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.

### Further Instructions

Any other information I have can be found at the [WP Conditional Shortcodes Homepage](http://thomasharrigan.com/wordpress-conditional-shortcodes/).

## Installation

 1. Activate the plugin through the ‘Plugins’ menu in WordPress

## Reviews

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

### 󠀁[Timesaver](https://wordpress.org/support/topic/timesaver-15/)󠁿

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

Doesn’t matter if it hasn’t been updated for ages I use it as a template in my functions.
php not as a plug-in …

 [ সব রিভিউ পড়ুন ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/)

## ডেভেলপার এবং কন্ট্রিবিউটর

“WP Conditional Shortcodes” is open source software. The following people have contributed
to this plugin.

কন্ট্রিবিউটর

 *   [ TomHarrigan ](https://profiles.wordpress.org/tomharrigan/)
 *   [ jrrl ](https://profiles.wordpress.org/jrrl/)

[Translate “WP Conditional Shortcodes” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-conditional-shortcodes)

### ডেভেলপমেন্ট এ আগ্রহী?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-conditional-shortcodes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-conditional-shortcodes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-conditional-shortcodes/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-conditional-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.2

 * 2013-02-27
 * Fixed bug with is_front_page not working

#### 1.1.1

 * 2013-02-08
 * Added parameter to is_single shortcode to allow for specific posts

#### 1.1.0

 * 2013-02-05
 * Forked plugin
 * Added parameters to is_category to allow check for specific categories
 * Added is_page shortcode
 * Added parameter to is_page shortcode to allow for specific pages

#### 1.0.0

*Initial version, pre-fork

## মেটা

 *  Version **1.1.2**
 *  শেষ আপডেট করা হয়েছে **13 বছর আগে**
 *  Active installations **40+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-conditional-shortcodes/)
 * ট্যাগ
 * [conditional](https://bn.wordpress.org/plugins/tags/conditional/)[conditional-tags](https://bn.wordpress.org/plugins/tags/conditional-tags/)
   [shortcode](https://bn.wordpress.org/plugins/tags/shortcode/)[shortcodes](https://bn.wordpress.org/plugins/tags/shortcodes/)
 * টি
 *  [এডভান্সড ভিউ](https://bn.wordpress.org/plugins/wp-conditional-shortcodes/advanced/)

## Ratings

 ৫ স্টার এর মধ্যে 5।

 *  [  4টি 5-স্টার রিভিউ     ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/?filter=5)
 *  [  0টি 4-স্টার রিভিউ     ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/?filter=4)
 *  [  0টি 3-স্টার রিভিউ     ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/?filter=3)
 *  [  0টি 2-স্টার রিভিউ     ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/?filter=2)
 *  [  0টি 1-স্টার রিভিউ     ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/?filter=1)

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

[সব রিভিউ দেখুন](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/)

## কন্ট্রিবিউটর

 *   [ TomHarrigan ](https://profiles.wordpress.org/tomharrigan/)
 *   [ jrrl ](https://profiles.wordpress.org/jrrl/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-conditional-shortcodes/)