I have created a looper provider using “Dynamic Content”. The dynamic content calls my ACF field which is gsp_author. This is an ACF Taxonomy Field Type. The field type is set to return the Term Object.
Using {{dc:looper:debug_consumer}} I get the following object.
Index: 0
Current Data:
object(WP_Term)#25798 (10) {
[“term_id”]=>
int(15)
[“name”]=>
string(48) “Alternative Information & Development Centre”
[“slug”]=>
string(42) “alternative-information-development-centre”
[“term_group”]=>
int(0)
[“term_taxonomy_id”]=>
int(15)
[“taxonomy”]=>
string(14) “library_author”
[“description”]=>
string(0) “”
[“parent”]=>
int(0)
[“count”]=>
int(0)
[“filter”]=>
string(3) “raw”
}
How does one go about accessing one of the array keys from the object?
For a normal array we could access the key but I can’t seem to figure out how to access the key in the object.