Beautiful Taxonomy Filters is a simple, convenient and beautiful-looking global custom taxonomy filtering plug-in for filtering articles. Through this plug-in, you can easily add taxonomy to your articles.Custom taxonomies to filter articlesFunction, the plug-in can also automatically add URL static redirection rules.
The Beautiful Taxonomy Filters plug-in is based on object-oriented principles and is created through WordPress standard queries. The key is that everything is automatic, which greatly facilitates use by usurpers. The plug-in uses the Select2 JavaScript plug-in to enhance the user experience of the drop-down options. In this era where the key is to look at the face, let’s first take a look at the appearance of the effect achieved by the plug-in.

Custom taxonomy filter plug-in – Beautiful Taxonomy Filters Main functions
- Enable custom taxonomy queries on all public custom post type archive pages
- Exclude custom taxonomies that you don’t want to appear in query criteria
- The query result URL is static, and the phenomenon of /posttype/?taxonomy1=term. will not appear, but will be like this: /posttype/taxonomy/term.
- compatiblePolylang multi-language plugin
- Compatible with multi-site mode, but there is no setting option under multi-language mode
- 3 ways to display filter modules in your theme:
- Widgets (also allows hardcoding a certain post type)
- Display via PHP function
- It is automatically inserted into the theme. If possible, it is recommended to display it through a PHP function.
- Choose a style or customize it with custom CSS
- Customize more functions through filtering function modules.
- Clear all link to clear all filters.
- Select the drop-down option to default to placeholder or “Show All”.
- Hide category items with no content in drop-down options.
- Display the number of articles after category items
How to use custom taxonomy filter plug-in – Beautiful Taxonomy Filters
The main settings of Beautiful Taxonomy Filters are as follows. You can select the article types that activate the filtering function, and then exclude a custom taxonomy that you do not want to display.

- Select the type of articles you want to filter.
Notice:If a post type doesn’t have any taxonomies associated with it, you won’t see any performance for that post type. - Select the filtered taxonomies you do not want to display.
Notice:This option only affects taxonomies associated with the article type. - The changes were saved successfully! Duang! The originally ugly classification filter instantly became beautiful!
- Use the widget to automatically display filter modules, or copy the following code:
<?php if(function_exists('show_beautiful_filters')){ show_beautiful_filters(); } ?>Then paste it into the archive.php file. The correct location should be above the following code.
<?php if( have_posts() ) : ?>Notice:The layout of archive.php may be different in each theme. We cannot help you debug the theme. If the theme you are using is very popular, you can try to ask for help in the forum. Otherwise, it is recommended to consult a professional for help.
- Use the widget to automatically display the current filter information module, or copy the following code:
<?php if(function_exists('show_beautiful_filters_info')){ show_beautiful_filters_info(); } ?> to wherever you need to display the filter module.
Automatically submit and refresh the page when modifying filter conditions
By default, the plug-in starts filtering by clicking the “Apply Filter” button after selecting the conditions. This may not be in line with everyone’s habits. We can simulate submission through js. When the filter conditions change, the submission action is automatically triggered to achieve the effect of automatic filtering. The code is as follows:
jQuery('.beautiful-taxonomy-filters-select').change(function(){
jQuery('#beautiful-taxonomy-filters-form').submit();
});
Use code to implement custom taxonomy filtering
The Beautiful Taxonomy Filters plug-in only supports article filtering through drop-down menus. When filtering articles, you have to click the mouse several times, which is not a very good user experience. If you want to implement more ways of filtering articles, please refer to the articles on this site.WordPress filters query content based on multiple conditions – similar to Zhongguancun mobile query。
2015-04-30 update:The plug-in has integrated the Chinese language translated by this site and can be used directly after installation. If you find any errors in the translation, please contact me to correct it.
