Hello.
I having trouble displaying a child taxonomy name. Here’s what I’m trying to do. I have the Events category ‘specials’ with its children ‘lunch’ and ‘dinner.’ All I want to do is echo the name of the child taxonomy depending on whether it’s in ‘lunch’ or ‘dinner.’ So if it’s a lunch special ‘lunch’ automatically appears without having to manually type it in.
I assume this can be done using get_terms() or get_the_terms() in conjunction with something like:
‘tax_query’=> array(
array(
‘taxonomy’ => ‘tribe_events_cat’,
‘field’ => ‘id’,
‘terms’ => ‘102’,
‘operator’ => ‘IN’
)
)
…but I haven’t been able to get it to work.
Thank you for any help you can give me!
ECP/TEC 2.0.7
WP 3.4.1