I trying to add something for selected category single post. Here is the code i tried <?php if (is_single() && in_category(array('category id'))) { echo 'here is content'; } ?> i even tried category name as well, but did not work.