pathologies aigues
cat_ID; /* $category= get_queried_object(); echo $category->term_id.''; */ //echo 'ID: '.$category_id.'
'; //echo 'ID2: '.$catID.'
'; if(category_has_parent($catID)) { //echo "
CAT ENFANT
"; //firstly, load data for your child category $child = get_category($catID); //print_r($child); //from your child category, grab parent ID $parent = $child->parent; //load object for parent category $parent_name = get_category($parent); //grab a category name $child_slug = $child->slug; $child_name = $child->name; $parent_slug = $parent_name->slug; $parent_name = $parent_name->name;?>Catégories affichées Toutes les catégories / /
Catégories affichées Toutes les catégories / pathologies aigues