Answers for "use php code in acf field"

PHP
2

acf get field

$value = get_field( "text_field" );

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

advanced custom forms php

<img src="<?php the_field('image_test'); ?>" alt="" />
Posted by: Guest on December-14-2020

Browse Popular Code Answers by Language