#Wordpress subcategory
-
Wordpress gets the top-level classification ID of the current classification and calls the subcategory -
When creating a wordpress theme, we met a need to obtain the sub category list of the current category in a category, and also judge that if the current category has a top-level category, we will obtain the sub category list under the top-level category. First, create a new function in functions.php to obtain the classification ID://to obtain the classification ID. The function parameter is the IDfu of the current classification whose type is int Wordpress Tutorial 2022-04-15 one thousand five hundred and eighty-two 0 Comments #Wordpress subcategory #Wordpress top-level classification #get_categories
-
Wordpress calls all subcategories of the current classification -
Wordpress often calls all subcategories under the current category when creating enterprise themes. To implement this, follow the steps below. First, write a function in the topic "functions. php". The code is as follows://Get the subcategory function get_category_root_id ($cat) {&n Wordpress Tutorial 2019-12-25 three thousand three hundred and fifty-five 0 Comments #Wordpress call #Wordpress call classification #Wordpress subcategory
-
Zblog enterprise theme -
Zblog image theme -
Zblog resource topic -
Zblog CMS topic -
Wordpress template -
Zblog video theme -
Zblog Taobao guest theme -
Zblog navigation topic
Select a theme?
-
Latest articles -
Hot article ranking -
Most Comments
-
one Shopping activity on the official website of Tianxing Studio: unlimited number of times and amount of 20% discount coupons 04-17 -
two Tianxing Studio zblog pure blog theme vue3+applet dual version 03-19 -
three Error causes and solutions of introducing vant into vue3 project 03-12 -
four Tianxing Studio zblog encyclopedia theme can be matched with member plug-ins to realize knowledge payment profitability 03-06 -
five How does zblog intercept a summary with a specified number of words? Introduction to the custom interception method of zblog summary 02-29 -
six Tianxing Studio 2023 Double 11 Event: 50% discount coupons 11-05 -
seven Tencent Cloud 2023 Double 11 Activity: 2H2G3M lightweight server 88 new users for one year 11-05 -
eight AliCloud 2023 Double 11 Activity: 2-core 2G3M bandwidth ECS 99 yuan/year! 10-31 -
nine Tianxing Studio zblog free login paid reading plug-in supports Alipay WeChat payment Hupi Pepper payment 10-09
-
Label aggregation -
×1 Another shot ×1 Zblog Add Share button ×1 Mail sending ×1 include ×1 Maximum reply layers exceeded ×1 Three column template ×1 Zblog likes ×1 SuperSlide ×1 zblogphp1.3 ×1 Adaptive background ×1 Tianyi College ×1 Applet development ×1 Included ×1 Comment Settings ×1 Wordpress Blog Theme ×1 Date call ×1 Zblog random articles ×1 Embedded width height ×1 Treble applet ×1 Taobao search code
Latest comments
-
Tianxing Studio 03-21 Yes, it will be repaired in the next version Commented on: Tianxing Studio zblog pure blog theme vue3+applet dual version -
visitor 03-20 This template has multiple side-by-side pictures. No matter which picture you click, the first picture will be displayed. There is no carousel button, and you can only manually close it. System: win7+Firefox Commented on: Tianxing Studio zblog pure blog theme vue3+applet dual version -
Tianxing Studio 01-19 I don't understand. Do you want to create categories in batches? This is not considered by the theme of plug-ins Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration -
visitor 01-18 It is too troublesome to classify and set one by one. Can you add classification settings in the theme settings. Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration -
Tianxing Studio 01-16 I don't quite understand your requirements. Please contact our online qq2076496616 to provide the order number to specify your requirements Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration