[wp-hackers] Problem getting categories
fidler.brian at gmail.com
Mon May 10 17:33:46 UTC 2010
I'm working on an artists website where I have categories set up like this:
Once I have the category I want to loop through all posts in that category
to grab a custom field from each post.
my url string looks like this:
I'm trying to get the categories using this:
$categories = get_the_category($post->ID);
It gets the parent category (category) without any problem however it
isn't getting child categories at all.
What am I doing wrong?
More information about the wp-hackers