[Resolved] Get Category ID for the archive page being viewed
I’m trying to work out how to get the category ID for the archive/category that’s currently being viewed.
In otherwords, when I’m viewing domain.com/archive/category/<CategoryName>/ I want to get the ID for the corresponding ‘Category name’ — without having to query something within the loop.
I think a few people have asked this before, but either haven’t got a response, or asked this question but meant to ask something else.
- The topic ‘[Resolved] Get Category ID for the archive page being viewed’ is closed to new replies.