Hello, I have a looper provider for the “Current Post Terms”. Inside the looper consumer I have put a text element that contains {{dc:looper:debug_consumer}}, so that I can see which data is available. Here is an example of this debug-output of one of the returned items:
Index: 1
Current Data:
object(WP_Term)#9084 (10) {
["term_id"]=>
int(79)
["name"]=>
string(8) "OptoDrum"
["slug"]=>
string(8) "optodrum"
["term_group"]=>
int(0)
["term_taxonomy_id"]=
int(79)
["taxonomy"]=>
string(14) "classification"
["description"]=>
string(0) ""
["parent"]=>
int(78)
["count"]=&>
int(6)
["filter"]=>
string(3) "raw"
}
In my specific example I want to access the “parent” field, but I cannot get it to work.
The following constructs work:
{{dc:looper:index}} {{dc:looper:count}} {{dc:term:name}} {{dc:term:description}} {{dc:term:slug}}
These constructs do NOT work:
{{dc:looper:field key=“parent” fallback=“xxx”}} (or any other key - always returns xxx)
{{dc:term:meta key=“parent”}} (or any other key - always returns noting
{{dc:query:query_var key=“parent”}}
How can I access the “parent” field?