in archive.php file, I want to know, which type of archive I i'm in. For example, if I i'm in archive for category Personal I'd like to be able to display it in header of the archive. Of course, I can create file like category-12.php, category-13.php ... and then harcode it in the file, but it doesn't seem to be very good example of code reuse.
Thanks for answers.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
||||
|
|
|
Inspect On an archive for the category
… and on an archive for the tag
So you can test if a property |
|||
|
|
