assigning a class using list_cats()
This isnt a problem if your able to hack in the WP files, the problem only besomces a problem if you want to make a template for others to use i think.
Ok so i have a menu and using list_cats() to get the categorys to show in the menu, the problem is that i cant assing a class to those links within the function.
So basicly i have no way what-so-ever to control the look of the menu links ?
Yes, sure i can hack it myself, but what about people that cant hack the files ?
The thing is that i wanna make my site yo a template for all to use, and with list_cast() i just get a list of
<a href="bla bla"></a>without any change of change of giving it a class.
i’ve used WP a week now, and i think its one of the best blogging system.
However i feel this is something that should be loooked at, and corrected so it becomes possible to assign a “class” to a link so the output would be:
(or WP_query() )
<a class="MENU" href="bla bla">cat_name</a>
The default should just be a blank field.
Anyway thanks for a great blogging system 🙂
- The topic ‘assigning a class using list_cats()’ is closed to new replies.