Articolo di prova
Tests if the current post (or any specified post) is assigned to any of the specified categories.
in_category() considers only the categories a post is directly assigned to (the checked categories in Write/Edit Post panel), not the parents of the assigned categories (but see Testing if a post is in a descendant category below).
This tag can be used to test the current post within The Loop or (since Version 2.7) outside the Loop during a single post request. You can use it anywhere if you specify which post you want to test.
Tests if the current post (or any specified post) is assigned to any of the specified categories.
Lue lisää