Timeline for Get Category ID inside Category template
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5, 2011 at 8:19 | comment | added | Lea Cohen |
get_the_category() does work inside category.php
|
|
May 29, 2011 at 21:16 | comment | added | VicePrez | @Michael true say. @Jan seems to have given a more appropriate answer in relation to that specific context. | |
May 29, 2011 at 21:00 | comment | added | Michael |
the question 'how do I get the cat ID inside the Template' is open to different interpretation. within a single post template, you are right. it works inside the loop to get categories of a single post; however,get_the_category() will not work in a category archive page to get the category id, the result would be arbitrary.
|
|
May 29, 2011 at 19:59 | history | edited | VicePrez | CC BY-SA 3.0 |
added 80 characters in body
|
May 29, 2011 at 19:51 | history | answered | VicePrez | CC BY-SA 3.0 |