<?php
$image = get_field('foto');
if (!empty($image)) {
echo '<div>';
echo '<img src="'.$image.'" height="500" width="500" alt=" " />';
echo '</div>';
} else {
echo "";
}
?>
hocam bu seferde "deneme" yazısına göre işlem yapıyor. Yani the_field('foto') -url almak için get_field('foto')-kısmının dolu mu boş mu olduğunu kontrol edemiyorum.