Support

Account

Home › Forums › Add-ons › Flexible Content Field › Filter taxonomy field in flexible content by parent category › Reply To: Filter taxonomy field in flexible content by parent category

  • You would need to build an array of term IDs to use in the “include” argument

    
    $children = get_term_children($term_id, 'TAXONOMY');
    $include = array_merge(array($term_id), $children);
    $args['include'] = $include;