[Resolved] Display name of child category
Does anybody know how to display the name of the current child category as title in category and single view (outside the loop)?
To display the current category name I use following code:
$my_cat_name = $wpdb->get_var("SELECT cat_name FROM $wpdb->categories, $wpdb->post2cat WHERE cat_ID = category_id AND post_id = $post->ID");
Thanks for any help, Evita
- The topic ‘[Resolved] Display name of child category’ is closed to new replies.