‘if’ function not working
-
I’m trying to use the default <?php if ( get_field(‘field_name’) ): ?> function to check if the field has a value, but it is ignored on the archive page.
Without it the field displays correctly, but as soon as I wrap it with ‘if/else’ the field is ignored.Am I missing something or is this a bug?
- The topic ‘‘if’ function not working’ is closed to new replies.