Support

Account

Home Forums General Issues get_field not working in Categories Reply To: get_field not working in Categories

  • 
    ....
    $categories = get_categories( $args );
    foreach($categories as $category) { 
    $term = $category->term_id;
    echo $term; //correctly displayed
    $img = get_field('immagine_attivita', 'term_'.$term); 
    ....