List some categories as text instead of links?
-
I’ve structured my blog using subcategories. However, one level of subcategories (the first subcategory level) only serves as a description (headline) for the subcategories it contain. Since clicking on it will return a blank WP page, I’m wondering if there’s an easy way of making sure that any listing of above mentioned category and its subcategories will display those empty categories in plaintext instead of a clickable link.
Example:
Category 1
-subCategory lvl 1
–subCategory lvl 2
–subCategory lvl 2
—subCategory lvl 3
-subCategory lvl 1Right now I’m using wp_list_cats to display Category 1 and all of its subcategories. Is there a way to obtain the name of the subcategory, and display it as text instead of a link, if said subcategory is of “lvl 1”?
- The topic ‘List some categories as text instead of links?’ is closed to new replies.