In productionWordPressWhen the theme is often met, how to be inWordPressThe category page displays the subcategories under the current category or displays the subcategories of the category on the article page,Especially when doing Chinese enterprise theme, we must use this skill。Today, I’d like to share with you the functions that I used to call subcategory when I was doing enterprise topics。
1.Now?function.phpAdd the following code to it
2.Then paste the following code where the secondary classification is to be displayed on the page
The function is to display the sub categories of the current category on the category page and the article page(Secondary classification)。