Get the current category reliably
-
Okay, I’ve been trying to do this for a while now with no success.
If I do
$category = get_the_category();
inside of a subcategory and then do
$category[0]->description
This should return the description of the CURRENT category correct? It seems that WordPress is organizing parent/child category relationships alphabetically for me, which seems really silly. Has anyone else noticed this?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get the current category reliably’ is closed to new replies.