Answers for "acf get object field"

PHP
1

get field acf

$content = get_field('content', $post_id);
Posted by: Guest on October-13-2020
2

acf get field

$value = get_field( "text_field" );

if( $value ) {
    echo $value;
} else {
    echo 'empty';
}
Posted by: Guest on June-29-2020
0

get field object acf

get_field_object('content', post_id);
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language