Title: WP Conditional Shortcodes
Author: TomHarrigan
Published: <strong>Èrèlé  8, 2013</strong>
Last modified: Èrèlé  27, 2013

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# WP Conditional Shortcodes

 Láti ọwọ́ [TomHarrigan](https://profiles.wordpress.org/tomharrigan/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/wp-conditional-shortcodes.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/wp-conditional-shortcodes/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/wp-conditional-shortcodes/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/wp-conditional-shortcodes/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/wp-conditional-shortcodes/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-conditional-shortcodes/)

## Àpèjúwe

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 Ìtumọ̀ Yorùbá: – if showing a single post. Use the optional parameter“
   ids” to specify specific posts.
 * is_singular Ìtumọ̀ Yorùbá: – if showing a single post or page.
 * is_page Ìtumọ̀ Yorùbá: – if showing a page. Use the optional parameter “ids” 
   to specify specific pages.
 * is_home Ìtumọ̀ Yorùbá: – if showing the blog home.
 * is_front_page Ìtumọ̀ Yorùbá: – if showing the front page of the site.
 * is_sticky Ìtumọ̀ Yorùbá: – if the current post or page is ‘sticky’.
 * is_category Ìtumọ̀ Yorùbá: – if showing a category-based archive. Use the optional
   parameter “ids” to specify specific categories.
 * is_page Ìtumọ̀ Yorùbá: – if showing a page.
 * is_tag Ìtumọ̀ Yorùbá: – if showing a tag-based archive.
 * is_tax Ìtumọ̀ Yorùbá: – if showing a tag- or category-based archive.
 * is_author Ìtumọ̀ Yorùbá: – if showing an author-based archive.
 * is_archive Ìtumọ̀ Yorùbá: – if showing any archive.
 * is_year Ìtumọ̀ Yorùbá: – if showing a yearly archive.
 * is_month Ìtumọ̀ Yorùbá: – if showing a monthly archive.
 * is_day Ìtumọ̀ Yorùbá: – if showing a daily archive.
 * is_time Ìtumọ̀ Yorùbá: – if showing an hourly or shorter archive.
 * is_feed Ìtumọ̀ Yorùbá: – if generating a feed.
 * is_search Ìtumọ̀ Yorùbá: – if showing search results.
 * comments_open Ìtumọ̀ Yorùbá: – 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Ìtumọ̀ Yorùbá: ’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/).

## Ìgbéwọlẹ̀

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

## Àwọn àgbéyẹ̀wò

![](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/) Ọwẹ́wẹ̀ 3, 2016

DoesnÌtumọ̀ Yorùbá: ’t matter if it hasnÌtumọ̀ Yorùbá: ’t been updated for ages 
I use it as a template in my functions.php not as a plug-in …

 [ Ka gbogbo àwọn àgbéyẹ̀wò 4 ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“WP Conditional Shortcodes” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí
ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “WP Conditional Shortcodes” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/wp-conditional-shortcodes)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/wp-conditional-shortcodes/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/wp-conditional-shortcodes/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/wp-conditional-shortcodes/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/wp-conditional-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 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

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.1.2**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 13 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **40+**
 *  Ẹ̀yà WordPress ** 2.5 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.5.2**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/wp-conditional-shortcodes/)
 * Àwọn àmì
 * [conditional](https://yor.wordpress.org/plugins/tags/conditional/)[conditional-tags](https://yor.wordpress.org/plugins/tags/conditional-tags/)
   [shortcode](https://yor.wordpress.org/plugins/tags/shortcode/)[shortcodes](https://yor.wordpress.org/plugins/tags/shortcodes/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/wp-conditional-shortcodes/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

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

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

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

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/wp-conditional-shortcodes/)