// Find out in Wordpress if a single/page is in a chosen category if (in_category('fruit')) { echo "This single/page is in category 'fruit'."; }