Title: Hiding empty fields
Last modified: August 24, 2016

---

# Hiding empty fields

 *  [laerke93](https://wordpress.org/support/users/laerke93/)
 * (@laerke93)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hiding-empty-fields-1/)
 * Hi, why is it not possible for me to hide the button field, if it’s empty?
 * This is how I do with the rest of the custom fields. But the button field will
   not cooperate.
 *     ```
       <?php if( get_field('field_name') ): ?>
       	<p>My field value: <?php the_field('field_name'); ?></p>
       <?php endif; ?>
       ```
   
 * Thanks 🙂
 * [https://wordpress.org/plugins/acf-button-field/](https://wordpress.org/plugins/acf-button-field/)

The topic ‘Hiding empty fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acf-button-field_fdfafa.svg)
 * [Advanced Custom Fields: Button Field](https://wordpress.org/plugins/acf-button-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-button-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-button-field/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-button-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-button-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-button-field/reviews/)

## Tags

 * [empty](https://wordpress.org/support/topic-tag/empty/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [get](https://wordpress.org/support/topic-tag/get/)
 * [hiding](https://wordpress.org/support/topic-tag/hiding/)

 * 0 replies
 * 1 participant
 * Last reply from: [laerke93](https://wordpress.org/support/users/laerke93/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/hiding-empty-fields-1/)
 * Status: not resolved