WordPress.org

Support

Support » Themes and Templates » [Resolved] current category id?

[Resolved] current category id?

  • Does any variable exist which contains the ID of the currently selected category to use in my theme? If the user is viewing a post the variable should contain the ID of the category which the current post belongs to. When the user is viewing a category archive the variable should of course contain the current category ID.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] current category id?’ is closed to new replies.