Category Tag options/paramaters/arrays…what?
-
I just jumped MT to WP and love everything about it…until i met “The Template Tags.” Suddenly WP’s apparent simplicity went totally out the window. Case in point: I’m trying to get a list of categories on the side bar that either includes or excludes categories. I have:
Issues
– 01
– 02
Articles
Insights
Specifically, this tag:
<?php wp_list_cats(''); ?>
According to the template tag manual (great, but apparently for codeheads only), I can add
* ‘exclude’ – string – These are the categories to exclude from the list
or
* categories – integer array – A list of categories to be displayed. This should be in the form of an array.
Neither explanation gives any clues as to how to style the option/parameters. The manual is too vague, and I’m sure this is a basic PHP thing, but for non-PHP users, it’s Greek.
So I don’t know if inside the parenthesis I should put:
(‘exclude’-Issues-) or (‘exclude=Issues’) or what.
Can someone define how these are written or point somewhere (other than the Template Tags manual) that explains this in clear language?
Thanks.
Gary
The topic ‘Category Tag options/paramaters/arrays…what?’ is closed to new replies.