I have a site with a form created with gravity forms. The visitor fills out this form and it populates a custom post type. The fields that the user completes are custom fields that I have created with “Advanced custom fields”.
The form has a series of questions that the user fills out, but will leave some blank, as they are not all required.
This is the code used for the output: <div class="form-question"><?php echo 'Birthday:' ?></div> <div class="form-answer"><?php the_field('birthday'); ?></div>
I need to figure out how to hide the text ‘Birthday’ if the birthday field is left blank.
So excited to see how well ACF @wp_acf and WP Gutenberg blocks work together! Coded my own custom Gutenberg block for a book list page with book image, author and description fields! SO easy to add on and update with new books now! #wordpress#momswhocode#blacktechtwitter