Hello
I am unsuccessfully trying to echo a custom field only if a child taxonomy exists and not getting anywhere..
This is where I am at
$taxonomy = 'gender';
$taxonomy_children = get_term_children($taxonomy_term_id, $taxonomy);
if ( $taxonomy_children = 'men' ) {
echo 'this custom field will show';
}
It echoes 'this worked' regardless of whether the chid taxonomy is 'men' or others I created.
I would be very grateful for any help!