Help Needed Customising ‘Categories’ Function
-
Hi,
As part of customising the way categories are displayed in my sidebar, I need to be able to display just the first 3 categories, ordered alphabetically (ascending) & show the number of posts for each of these categories.
Having read through the codex, the best thing I’ve been able to come up with is:
<?php WP_list_cats (‘ sort_column=name&optioncount=1&exclude=x’);?>
where x=the list of category ids I want to excludeAlthough this will work, I have a long list of categories that need to be excluded, so it’s a bit clumsy, added to which, everytime I add a category, I’ll have to alter the code.
What I really want is to be able to say exclude x where where x=all categories with ids greater than 3, but my limited understanding of the syntax for this function tell me I can’t do this…or can I?
Can anyone suggest an elegant solution?
Thanks
- The topic ‘Help Needed Customising ‘Categories’ Function’ is closed to new replies.