Trim list of parents categories
-
Hi.
I have <?php echo(get_category_parents($cat, TRUE, ‘ ? ‘)); ?>
The output is:
Category With ID=10 ? Category With ID=22 ? Category With ID=28 ? Category With ID=14 ?
How to trim output to some level?
I need function that output will be:
Category With ID=28 ? Category With ID=14 ?
How to trim some categories from get_category_parents() but leave it childrens?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trim list of parents categories’ is closed to new replies.