Displays subcategories, only the current product category

前端 未结 0 1450
眼角桃花
眼角桃花 2021-02-01 09:45

I made an output of subcategories, only the current category using:

foreach ($terms as $term) {
    if (($term->category_parent ?: $term->cat_ID) !== get_qu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题