It is a common task to hide empty field values from your template. This can be achieved by using conditional statements to check the value before rending it.
The basics to conditional a statement is to use an if statement. You can read more about this core PHP function here: http://php.net/manual/en/control-structures.if.php
ACF | Hiding empty fields
No comments:
Post a Comment