Support

Account

Home Forums General Issues Display category acf fields on category/archive header Reply To: Display category acf fields on category/archive header

  • Yes, you’re correct, you need to add something. See “Get a value from different objects” https://www.advancedcustomfields.com/resources/get_field/

    
    $post_id = 0;
    $queried_object = get_queried_object();
    if (isset($queried_object->term_id)) {
      $post_id = $queried_object->taxonomy.'_'.$queried_object->term_id;
    }
    
    // ....
    
    $value = get_field('my-field', $post_id);