List some categories as text instead of links? (1 post)

  1. Gentist
    Posted 9 years ago #

    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.

    Category 1
    -subCategory lvl 1
    --subCategory lvl 2
    --subCategory lvl 2
    ---subCategory lvl 3
    -subCategory lvl 1

    Right 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"?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.