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

Reorder Terms

설명

We consider Reorder Terms a developer tool. If you do not know what menu_order or custom queries are, then this plugin is likely not for you. This is an add-on to Reorder Posts and requires Reorder Posts 2.1.0 or greater.

Reorder Terms takes a different approach to term reordering. Instead of modifying core tables to achieve reordering, we do it using term meta per post type.

With the ability to add taxonomies to multiple post types, this method allows you to reorder terms within each post type attached to the same taxonomy.

This plugin treats terms like pages. Each term in a hierarchy has a term order. This allows quick reordering and deep traversing to get the exact terms and order you prefer.

As a result, you can get reordered terms with a query such as:

$query = array(
    'orderby' => 'meta_value_num',
    'order' => 'ASC',
    'meta_query' => array(
        'relation' => 'OR',
        array(
            'key' => 'post_order',
            'compare' => 'NOT EXISTS'
        ),
        array(
            'key' => 'post_order',
            'value' => 0,
            'compare' => '>='
        )
    ),
    'hide_empty' => true,
    'parent' => 0
);
$terms = get_terms( 'post_format', $query );
echo '<ul>';
foreach( $terms as $term ) {
    printf( '<li>%s</li>', esc_html( $term->name ) );
}
echo '</ul>';

While admittedly the query isn’t exactly poetry, it’s efficient, and insanely flexible.

Features

  • Add-on to Reorder Posts, so there is only one place to do all your reordering.
  • Reorder terms for each taxonomy within each post type. Very flexible.
  • Spread the Word

    If you like this plugin, please help spread the word. Rate the plugin. Write about the plugin. Something 🙂

    Development

    Development happens on GitHub.

    You are welcome to help us out and contribute on GitHub.

    스크린샷

    • Reorder Terms Interface
    • Example of Terms on the front-end
    • Example of Terms on the front-end

    설치

    Either install the plugin via the WordPress admin panel, or …

    1. Upload reorder-terms to the /wp-content/plugins/ directory.
    2. Activate the plugin through the ‘Plugins’ menu in WordPress.

    This plugin requires Reorder Posts 2.1.0 or greater.

    Please note that this plugin does not change the order of items in the front-end. This functionality is not core WordPress functionality, so it’ll require some work on your end to get the posts to display in your theme correctly.

    See usage for some examples.

    FAQ

    Ask your questions here!

    후기

    모든 1 평가 읽기

    기여자 & 개발자

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

    기여자

    “Reorder Terms”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

    자국어로 “Reorder Terms”(을)를 번역하세요.

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

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

    변경이력

    1.1.1

    • Released 2019-02-16
    • Added term helper query in the back-end

    1.1.0

    • Re-release

    1.0.0

    • Initial release.