get_the_categor y() returns an array that looks like this:
ResourceArray ( [0] =stdClass Object ( [cat_ID] =3 [cat_name] =>
Certifications [category_nicena me] =ms-certifications
[category_descri ption] =Certification Resource [category_parent] =0
[category_count] =5 [fullpath] =/ms-certifications ) )
I want to get the value in "category_descr iption" and have tried:
$category = get_the_categor y();
$cat_d = $category->category_descr iption;
print_r($cat_d) ;
But that doesn't print anything. What is the correct way to get the
value I'm after?
Thanks,
Brett
ResourceArray ( [0] =stdClass Object ( [cat_ID] =3 [cat_name] =>
Certifications [category_nicena me] =ms-certifications
[category_descri ption] =Certification Resource [category_parent] =0
[category_count] =5 [fullpath] =/ms-certifications ) )
I want to get the value in "category_descr iption" and have tried:
$category = get_the_categor y();
$cat_d = $category->category_descr iption;
print_r($cat_d) ;
But that doesn't print anything. What is the correct way to get the
value I'm after?
Thanks,
Brett
Comment