Hello
I uesd ACF for a catalog, and sometime some field are empty but i d’ont know how to display it
material : <?php the_field(‘material’); ?></br>
but if the_field(‘material’) is empty i want to display nothing
how to do it
Hope it’s clear
Cheers
Nad
I found it
<?php if (get_field(‘material’)) {
your text
} ?>
How does the whole script look?