Hi everyone!
I have an header responding to the category of the posts shown.
If I show a category or an archive page, no problem!
But if I show a single page, how can I know wich category is that post from?
Thank you!
Hi everyone!
I have an header responding to the category of the posts shown.
If I show a category or an archive page, no problem!
But if I show a single page, how can I know wich category is that post from?
Thank you!
possibly with:
get_the_category($post->ID)
http://codex.wordpress.org/Function_Reference/get_the_category
Thanks a lot!!!!
This topic has been closed to new replies.