Category callback box problem
Yes there is such possibility. Just change your code to this: $main_category_name = YOUR MAIN CATEGORY NAME; // get the main category of this section (i.e nadchodzące) foreach( ( get_the_category() ) as $category ) { if ( $category->cat_name != $main_category_name ) { $category_name = $category->cat_name; $category_url = get_category_link($category); $cat_com_url = get_comments_link(); } <span class=”cb-category”><a href=”https://wordpress.stackexchange.com/questions/106337/<?php … Read more