Reply to How to get array element?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация