In wp_list_cats: parent categories as headings, not links?
-
This is more of a “would be nice” thing than a support question, as I don’t expect a real solution to this.
I’m using (sub)categories as a way to organize data in a current WP-as-database experiment of mine (this almost sounds like I know what I’m doing). There’ll never be posts in the parent categories, they just describe the child cats (“by author”, “by type” etc.). Like I said, experimenting.
The support archives have helped me to at least display those empty-parent categories, and I experimented a little with the
display:
CSS parameter to then hide the parents (which only sort of worked).Now my question is if there’s any way to edit, for example, the
template-functions-category.php
to take out any<a href="">
wrappers around the parent list items only, so that those would function as “headers”, not links. I don’t know much about PHP, so I can’t answer the question myself.
- The topic ‘In wp_list_cats: parent categories as headings, not links?’ is closed to new replies.