
內容簡介
Taxonomy filter是一個簡單靈活的外掛,允許用戶在管理頁面內過濾層次性詞彙分類。如果您需要簡化管理頁面上的標籤和分類,這個外掛會讓您更容易。它會添加一個自定義的輸入欄位(僅限於已配置的詞彙分類),您可以使用它來過濾所有詞彙分類列表。
想像一下,在文章管理頁面上有太多的標籤,需要花費大量的時間滾動長列表或使用傳統瀏覽器搜索框搜索標籤。有了“Taxonomy filter”插件,您可以在非常短的時間內搜索、選擇和選擇標籤,大大提高效率!
此外,您需要設置哪些詞彙分類需要啟用“Taxonomy filter”。安裝並啟用外掛時,會在設置部分添加一個管理頁面。在此頁面中,所有有效的詞彙分類會自動列出,您有兩個選擇:
啟用文章管理頁面(可開關過濾欄位)
如果詞彙分類為空,隱藏過濾欄位
如果您想進行快速編輯,還可以在批量編輯部分中管理詞彙分類過濾器。
如果在您的主題中使用了“manage_edit-post_columns”過濾器更改了文章列,您需要添加另一個過濾器來應用詞彙分類過濾器批量部分。
例如:
add_filter('manage_edit-post_columns', 'taxonomy_filter_manage_bulk_columns', 99, 1);
add_filter('manage_edit-<CUSTOM-TYPES>_columns', 'taxonomy_filter_manage_bulk_columns', 99, 1);
它僅適用於層級詞彙分類(包括預設類別和自定義詞彙分類)。
啟用詞彙分類過濾器後,在用戶個人資料頁面和詞彙編輯頁面中顯示選擇隱藏詞彙分類的部分。
在用戶個人資料頁面中,您可以為每個用戶選擇從管理頁面內的層級詞彙分類中移除的詞彙分類列表。
默認情況下,所有詞彙分類都在管理頁面內的層級詞彙分類部分中可見。您只能從最多兩個階層中選擇,但隱藏項目的所有子項目都會自動從管理頁面中刪除。請記住,隱藏的詞彙分類無法進行搜索和過濾。
在編輯詞彙頁面中,您可以選擇(對於所有用戶)是否從管理頁面內的層級詞彙分類中刪除(隱藏)該詞彙。
使用方法
進入WP-Admin ->文章 ->新增文章。
在頁面側邊欄中找到輸入過濾欄位。
選擇標籤過濾清單。
連結:作者網站
外掛標籤
開發者團隊
原文外掛簡介
Taxonomy Filter is a simple and flexible plugin which allow users to filter hierarchical term taxonomies inside admin pages. If you need to simplify your tags and categories research on admin pages, this plugin will make it easier for you. It adds a custom input field (only for configured taxonomies) that you can use to filter a every taxonomy list.
Imagine having too many tags on your post admin page and having to lose so much time scrolling a long list of items or having to search for a tag with the classic browser search box. With “Taxonomy Filter” plugin you can search, choice and select tags in a very short time, a great gain!
In addition, you have to setup which taxonomies should have “Taxonomy Filter” activated. When you install and activate the plugin, an admin page is added on settings section. In this page are automatically listed all valid taxonomies, you have two options:
enable on post management pages (allow you to turn on/off filter field)
hide filter field if taxonomy is empty
You can also manage taxonomy filters into bulk edit section if you want to perform a quick edit.
If in your theme you have changed post columns using the ‘manage_edit-post_columns’ filter, you need to add another filter to apply the taxonomy filter bulk section.
For example:
add_filter('manage_edit-post_columns', 'taxonomy_filter_manage_bulk_columns', 99, 1);
add_filter('manage_edit-
It works only with hierarchical taxonomies (both default categories and custom taxonomies).
When you enable a taxonomy filter, a section for choosing hidden taxonomy terms is displayed in user profile page and in term edit pages. In user profile page you can select (for each user) a list of taxonomy terms that are removed from hierarchical term taxonomies inside admin pages.
By default, all taxonomy terms are visible in the hierarchical term taxonomies sections inside admin pages. You can choose only from max 2 nested levels but all the children of a hidden term are automatically removed from admin pages. Keep in mind that the hidden terms are not searchable and filterable.
In edit term page you can select (for all users) if term should be removed (make hidden) from hierarchical term taxonomies inside admin pages.
Usage
Go to WP-Admin -> Posts -> Add New.
Find the input filter field on page sidebar.
Select tags filtering list.
Links: Author’s Site
