Support

Account

Home Forums General Issues How to Upgrade Simple Fields to ACF 5 Reply To: How to Upgrade Simple Fields to ACF 5

  • Hello BliniReizen,
    The parameters of ACF get_field() are as follows:
    get_field($selector, [$post_id], [$format_value]);

    So your test code should look like this:

    $tip = get_field("tip",$post->ID);
    if( $tip ) {
        echo $tip;
    } else {
        echo ’empty’;
    }

    Give this a try. The third parameter is true by default ($format_value).
    Thanks,
    John