• Hey guys,

    If a category has sub categories, is it possible to echo these in the title tag? For example, if i had a category of music, with a sub category of artists, how can i get the title tag to display music – artists when on the artists category page??

    At the moment i have the following conditional tag for categories but it only displays the name of the category page you are viewing at the time, not the parent as well.

    elseif (is_category()) {
    wp_title(”); echo ‘ – ‘; bloginfo(‘name’);
    }

    If anyone could help me with this it would be much appreciated. Thanks.

  • The topic ‘Sub category in Title tag’ is closed to new replies.