Hallo
ich habe folgendes Array
wie kann ich ["cat_name"] ausgeben?
komm net wirklich dran..
$categories->cat_name
$categories["cat_name"]
geht alles nicht.
ich habe folgendes Array
Code:
array(1) {
[0]=>
object(stdClass)#137 (16) {
["term_id"]=>
&string(1) "4"
["name"]=>
&string(8) "Angebote"
["slug"]=>
&string(23) "handy-tauschen-angebote"
["term_group"]=>
string(1) "0"
["term_taxonomy_id"]=>
string(1) "4"
["taxonomy"]=>
string(8) "category"
["description"]=>
&string(0) ""
["parent"]=>
&string(1) "5"
["count"]=>
&string(1) "1"
["object_id"]=>
string(2) "32"
["cat_ID"]=>
&string(1) "4"
["category_count"]=>
&string(1) "1"
["category_description"]=>
&string(0) ""
["cat_name"]=>
&string(8) "Angebote"
["category_nicename"]=>
&string(23) "handy-tauschen-angebote"
["category_parent"]=>
&string(1) "5"
}
}
Code:
global $post;
$categories = get_the_category($post->ID);
var_dump($categories);
komm net wirklich dran..
$categories->cat_name
$categories["cat_name"]
geht alles nicht.