Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to get array element?
November 4, 2006, 8:08 pm
rate this thread
ResourceArray (  => 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;
But that doesn't print anything. What is the correct way to get the
value I'm after?