Home › Forums › Back End › Conditional statement on category.php › Reply To: Conditional statement on category.php
December 13, 2015 at 9:49 am
#235820
Participant
Sorry was on my mobile when I replied to this last time. This is the correct code, if you’re on category.php
template.
$category = single_cat_title('', false);
if ( $category == 'test' ) {
echo 'on test category';
}