Get the category id
-
Aloha,
I’m trying to make a dynamic sidebar menu that changes depending on the category of the current post.
Question 1:
My problem is that can’t get the category ID for the current post. I have been able to get all the category IDs, etc., but what I need is the one and only category ID for the current post.Question 2:
Am I correct when I assume that it’s impossible to assign a category to a page?Thanks, phimix
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Get the category id’ is closed to new replies.