Support

Account

Home Forums General Issues Output Fields input through Template A to Template B Reply To: Output Fields input through Template A to Template B

  • You need to supply the post ID so ACF knows where to get the values from

    You can get the ID using this

    
    $post_id = get_option('page_on_front');
    

    Then add this to your get_field() and the_field() calls

    
    get_field('field-name', $post_id)
    
    
    the_field('field-name, $post_id)