Title: WP Conditional Shortcodes
Author: TomHarrigan
Published: <strong>2013년 2월 8일</strong>
Last modified: 2013년 2월 27일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

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

# WP Conditional Shortcodes

 작성자: [TomHarrigan](https://profiles.wordpress.org/tomharrigan/)

[다운로드](https://downloads.wordpress.org/plugin/wp-conditional-shortcodes.zip)

 * [세부사항](https://ko.wordpress.org/plugins/wp-conditional-shortcodes/#description)
 * [평가](https://ko.wordpress.org/plugins/wp-conditional-shortcodes/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/wp-conditional-shortcodes/#installation)
 * [개발](https://ko.wordpress.org/plugins/wp-conditional-shortcodes/#developers)

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

## 설명

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/).

## 설치

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

## 후기

![](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/) 2016년 9월 3일

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 …

 [ 모든 4 평가 읽기 ](https://wordpress.org/support/plugin/wp-conditional-shortcodes/reviews/)

## 기여자 & 개발자

“WP Conditional Shortcodes”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이
플러그인에 기여하였습니다.

기여자

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

[자국어로 “WP Conditional Shortcodes”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/wp-conditional-shortcodes)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/wp-conditional-shortcodes/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/wp-conditional-shortcodes/)를
확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/wp-conditional-shortcodes/)
을 [RSS](https://plugins.trac.wordpress.org/log/wp-conditional-shortcodes/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

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

## 기초

 *  버전 **1.1.2**
 *  최근 업데이트: **13년 전**
 *  활성화된 설치 **30+**
 *  워드프레스 버전 ** 2.5 또는 그 이상 **
 *  다음까지 시험됨: **3.5.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/wp-conditional-shortcodes/)
 * 태그:
 * [conditional](https://ko.wordpress.org/plugins/tags/conditional/)[conditional-tags](https://ko.wordpress.org/plugins/tags/conditional-tags/)
   [shortcode](https://ko.wordpress.org/plugins/tags/shortcode/)[shortcodes](https://ko.wordpress.org/plugins/tags/shortcodes/)
 *  [고급 보기](https://ko.wordpress.org/plugins/wp-conditional-shortcodes/advanced/)

## 평점

 별 5점 만점에 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/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/wp-conditional-shortcodes/)