Custom taxonomy order

Article directory [hidden]

Plug in introductionThe front-end outputs the classification list in a user-defined orderPlug in download and Sinicization

In the process of developing a project, you need to sort the background classification and user-defined classification. At the same time, when you output the classification list in the foreground, it is displayed according to the user-defined sorting. Here we implement it with the help of the final custom taxonomy order plugin.

Plug in introduction

Custom taxonomy order supports the following functions:

Sort (customize) categories through a simple drag and drop interface. No custom encoding is required. It uses a standard WordPress filter. The custom function can sort the taxonomy itself.The front-end outputs the classification list in a user-defined order

When using something like get_ Terms or get_ No additional settings are required for default functions such as categories.

If some functions need to, you can add ‘orderby’ = >’term to the parameter_ For example:

$a = array(
    'hide_empty'   => false,
    'title_li'     => '',
    'orderby'      => 'term_order', // 注意添加这行参数
);
wp_list_categories( $a );

Plug in download and Sinicization

You can search the custom taxonomy order in the background plugin installation interface to install online, or visit the plugin address to download and install https://wordpress.org/plugins/custom-taxonomy-order-ne/

The plugin has been translated into Chinese. Click to download the simplified Chinese package, unzip and upload the. Mo and. Po files to the WP content / Languages / plugins directory.

Related Article
WordPress code highlight plugin: pure highlightjs (support code insertion under visualization)

Article directory [hidden] Installation instructionsHow to use Pure highlightjs is a highlight plugin of WordPress code based on highlightjs. It Read more

syntax highlighter wordpress plugin: WP-Syntax

WP-Syntax code writing format: <pre lang="html" line="1" escaped="true" > //Add code here…… </pre> lang="html" means that the code language is Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image