if the $cat had a parent then how to get the parent’s name
-
my categorys
term_id name parent
1 aa 0
2 aa1 1
3 aa2 1
if the $cat had a parent then how to get the parent’s name
now the head.php
excemple cat=2
use the title<title> <?php /* If this is a category archive */ if (is_category()) { ?> <?php wp_title(); ?> - <!--here how to get the parent's name--> - <?php bloginfo('name'); ?> <?php } ?> </title>
thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘if the $cat had a parent then how to get the parent’s name’ is closed to new replies.