Answers for "get_field image"

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

wp+get custom field phpto

<div class="about_photo">
		<?php
		$value =get_field('about_photo');
		 echo "<img src='".$value."' width='200px' height='200px'>";
		 ?>
</div>
Posted by: Guest on November-20-2020

Browse Popular Code Answers by Language