Menu with category 2 category combined

Please explain the logics of 2 menus displayed on same page. I believe you menu structure is as follows: first dishes – fish – chicken second dishes – fish – chicken So your main categories are ones like “first dishes” and “second dishes” How do you want to show main categories – as separate menus? … Read more

WordPress display only child category in template

If you know the parent category name, then you could just do an if inside the foreach Demo code <?php foreach((get_the_category()) as $category) { if($category->cat_name!=”parent category name”) { echo ‘<a class=”tag-cat ‘ . $category->slug . ‘” href=”‘ . get_category_link($category->cat_ID) . ‘”>’ . $category->cat_name . ‘</a>’; } } ?> ?>