Support

Account

Home Forums Front-end Issues get_field stops working when moving to WPML Reply To: get_field stops working when moving to WPML

  • Hi @philipp

    Your first step is to debug variables:

    
    <?php
    
    // test field
    $post_objects = get_field('snippet_list');
    
    echo '<pre>';
    	print_r( $post_objects );
    echo '</pre>';
    die;
    
    //test post_id
    global $post;
    
    echo '<pre>';
    	print_r($post->ID);
    echo '</pre>';
    die;
    
     ?>
    

    Are these variables producing the correct data?