On my main page I have a few post from two categories, but I only want it to display only one
Here is my code
<?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'themename' ) ); if ( $categories_list && themename_categorized_blog() ) : ?> <?php printf( __( '%1$s', 'themename' ), $categories_list ); ?>
Is it possible to do it by adding this
 in the code somewhere, if so, where?