Posted by brett on 11/04/06 20:08
get_the_category() returns an array that looks like this:
ResourceArray ( [0] => stdClass Object ( [cat_ID] => 3 [cat_name] =>
Certifications [category_nicename] => ms-certifications
[category_description] => Certification Resource [category_parent] => 0
[category_count] => 5 [fullpath] => /ms-certifications ) )
I want to get the value in "category_description" and have tried:
$category = get_the_category();
$cat_d = $category->category_description;
print_r($cat_d);
But that doesn't print anything. What is the correct way to get the
value I'm after?
Thanks,
Brett
[Back to original message]
|