wp_list_categories permalinks
-
I’ve designed an alternate archives.php page that uses the function
wp_list_categories
But in order to exclude or include the categories I want listed, I have to use category ID. for example:
<ul> <?php wp_list_categories('orderby=name&include=3,5,9,16'); ?> </ul>
I’m assuming the category ID number is the number it would be given normally, but I’ve switched to permalinks, and can’t figure out what the category number is. Is there anyway that I can get it to include or exclude by category name now? or slug?
Any advice would be very helpful. Thank you.
P.S. I’m just teaching myself php, and I’m not very good at it, so please treat me like an idiot when you explain the solution to this, if you have one.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp_list_categories permalinks’ is closed to new replies.