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

Tag or Category term_group Order

설명

This plugin is intended as an aid to theme and plugin developers. It changes the term_group field value in a core WordPress database table

($wpdb->terms). So, please be aware of the risks involved and always back up your site before activating a new plugin.

The purpose of the plugin is to allow sorting of tags or categories based on ‘term_group’. This allows queries that

fetch terms to use ‘term_group’ as a sort order.

This can be used to display tags or categories in a semantic way in archives and individual posts.

For example,

If we have three groups of categories for size, color and object, then categories displayed as

Small, Green, Table

Big, Blue, Chair

are more readable than

Table, small, green

Chair, big, blue

스크린샷

  • 'group' available when adding a new term.

설치

  1. Upload the category term_group order folder to /wp-content/plugins/.

  2. Activate the plugin through the “Plugins” menu in WordPress.

  3. You will now be able to set a ‘Group’ field for categories.

  4. Paste the following code in single.php , index.php , archive.php to display the categories based on term_group order

    $args = array(‘orderby’ => ‘term_group’, ‘order’ => ‘ASC’, ‘fields’ => ‘all’);

    $terms = wp_get_object_terms($post->ID, ‘category’, $args );

    $count = count($terms);

    if($count > 0){

    echo ‘Posted in

    ‘;

    }

FAQ

This is the first version of the plugin. So, no FAQ yet.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

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

기여자

자국어로 “Tag or Category term_group Order”(을)를 번역하세요.

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

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.2.2

  • Tested up to WordPress 4.5

0.2

  • Added style.css

0.1

  • This is the first version of this plugin.