I have been picking my brain (and the web) to come up with code that can generate a list of sub-category IDs, delimited by commas. I’ve tried so many things that it’s hard to provide the code example that’s gotten me the closest.
However, the follow code generates a list of the child categories within parent ID 29:
<ul> <?php wp_list_categories('orderby=id&show_count=1&use_desc_for_title=0&child_of=8'); ?> </ul>
Is there some way to modify this code to display the subcat IDs instead of their names?
Any help would be greatly appreciated!
- The topic ‘Delimited List of Sub-Cat IDs?’ is closed to new replies.