0
我想從下面的數組中獲取term_taxonomy_id
,但每次它給我以下錯誤。wordpress stdClass對象元素訪問
Catchable fatal error: Object of class WP_Error could not be converted to string in C.....
Array
(
[0] => stdClass Object
(
[term_id] => 5
[name] => fonts
[slug] => fonts
[term_group] => 0
[term_taxonomy_id] => 5
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 2
[object_id] => 96
[cat_ID] => 5
[category_count] => 2
[category_description] =>
[cat_name] => fonts
[category_nicename] => fonts
[category_parent] => 0
)
)
如果你能證明你是如何試圖訪問這個屬性的話,那將是非常棒的。 –