how to display page title only for child category pages
Add a check wherever you’re displaying the title: //Anything greater than 0 means the category has parents, 0 means no parent, child category if($category->category_parent > 0){ echo $category[0]->cat_name; } This should help.