Hi all,
In the situation that I am viewing a wordpress post, I'd like to be able to identify only the subcategory that the post is in and set that subcategory as a variable. I can't seem to find any easy way to do this. Can anyone help?
Example: I'm viewing a baseball blog post under a sports category - but I want to only set the subcategory "baseball" as my variable.
I would like to do this for any category that has subcategories.
Thanks!