the_category_ID()
-
Could someone please help to use the tag “the_category_ID()”? This tag isn’t working at all, it should return the ID of the category of the current post (in main loop) but all what I get is alway “0”. If I search this forum other people had this problem too. It seems that this function is deprecated. In the wiki though this function is mentioned without a remark that it is deprecated …
So how can I get the ID of the category of a post? I want to use this for a categery icon. The icon category plugin posted recently isn’t useful for me, because the icon would be placed in the post itself but I want to place an icon near the title.
So please could give me a hint how to solve this?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘the_category_ID()’ is closed to new replies.