【发布时间】:2019-04-07 00:06:33
【问题描述】:
wordpress 有功能the_category(''); 用于显示分配给当前帖子的所有类别,但我需要获取当前类别唯一的子项而不显示父项。
例如我的帖子有类别类别父 --> 类别子和 the_category; print :your post cat is : ( category parent , category child )
我需要 parint,你的 post cat 是 : (category child) 而不是显示 parent。
【问题讨论】:
-
您的问题很难理解,请改写。
-
不很简单,我需要在 wordpress 的循环单页中获取当前类别子项