Title: Limit taxonomy term count
Author: dahousecatz
Published: <strong>2018년 10월 23일</strong>
Last modified: 2018년 10월 23일

---

플러그인 검색

![](https://ps.w.org/limit-taxonomy-term-count/assets/banner-772x250.png?rev=1961327)

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

![](https://ps.w.org/limit-taxonomy-term-count/assets/icon-256x256.png?rev=1961327)

# Limit taxonomy term count

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

[다운로드](https://downloads.wordpress.org/plugin/limit-taxonomy-term-count.1.1.zip)

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

 [지원](https://wordpress.org/support/plugin/limit-taxonomy-term-count/)

## 설명

By default WordPress does not allow you to limit how many taxonomy terms can be 
attached to a post.
 Enabling this plugin allows the use of the “limit” attribute
when initially calling register_taxonomy(). If the limit is set to 1 then only one
term can be added to the post. If the limit is greater than one then that many terms
may be added to the post. If the limit is attribute is not set, or it’s set to -
1 this plugin has no effect.

Example code showing the use of the limit attribute:

    ```
    register_taxonomy('artists', 'art_work', [
        'label'             => 'Artists',
        'show_ui'           => true,
        'limit'             => 1,
    ]);
    ```

This example shows the use of a custom taxonomy called “artists” and the post type
is “art_work”.

Here is another example but this time it’s editing the previously registered taxonomy“
post_tag”:

    ```
    // First load the taxonomy
    $taxonomy = get_taxonomy('post_tag');

    // Edit it to only allow 2 tags to be added per post
    $taxonomy->limit = 2;

    // Re-save it with our updated settings (note casting the object to an array before saving)
    register_taxonomy('post_tag', 'post', (array)$taxonomy);
    ```

## 설치

The easiest way to install this plugin is to go to Add New in the Plugins section
of your blog admin and search for
 “Limit taxonomy term count.” On the far right
side of the search results, click “Install.”

If the automatic process above fails, follow these simple steps to do a manual install:

 1. Extract the contents of the zip file into your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  Can I edit settings passed to select2?

Yes, you can use the filter limit_taxonomy_term_count_js_data to make any changes
to settings.

E.g.

    ```
    add_filter('limit_taxonomy_term_count_js_data', 'my_plugin_limit_taxonomy_term_count_js_data');
    function my_plugin_limit_taxonomy_term_count_js_data($data) {
        foreach($data as $taxonomy_name => &$settings) {
            if($taxonomy_name == 'this_is_the_taxonomy_your_looking_for') {
                // This is the array of settings passed to select2:
                print_r($settings['select2_options']);
            }
        }
        return $data;
    }
    ```

## 후기

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

### 󠀁[Works!](https://wordpress.org/support/topic/works-1584/)󠁿

 [Heli A.](https://profiles.wordpress.org/heli-a/) 2019년 6월 20일

Works as promised!

 [ 모든 1 평가 읽기 ](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/)

## 기여자 & 개발자

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

기여자

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

[자국어로 “Limit taxonomy term count”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/limit-taxonomy-term-count)

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

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

## 변경이력

#### 1.0

 * First version released.

## 기초

 *  버전 **1.0**
 *  최근 업데이트: **8년 전**
 *  활성화된 설치 **10보다 적음**
 *  워드프레스 버전 ** 4.7 또는 그 이상 **
 *  다음까지 시험됨: **4.9.33**
 *  PHP 버전 ** 5.6 또는 그 이상 **
 *  언어
 * [English (US)](https://wordpress.org/plugins/limit-taxonomy-term-count/)
 * 태그:
 * [taxonomy](https://ko.wordpress.org/plugins/tags/taxonomy/)
 *  [고급 보기](https://ko.wordpress.org/plugins/limit-taxonomy-term-count/advanced/)

## 평점

 별 5점 만점에 5점.

 *  [  1/5-별점 후기     ](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/?filter=2)
 *  [  0/1-별점 후기     ](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/limit-taxonomy-term-count/reviews/)

## 기여자

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

## 지원

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

 [지원 포럼 보기](https://wordpress.org/support/plugin/limit-taxonomy-term-count/)