Will has_category be true is used on index and one of queried posts has the category?

If i use has_category(‘dogs’) on a template like index.php or archive.php or search.php and one of the posts displayed on the loop have the category dogs, will the function return true?

I know it works on single post but i need to know if it also works when on THE LOOP and any of the posts has the category.

Read more here:: Will has_category be true is used on index and one of queried posts has the category?

Leave a Reply

Your email address will not be published. Required fields are marked *