Title: [Plugin: Advanced Custom Fields] Conditionals
Last modified: August 20, 2016

---

# [Plugin: Advanced Custom Fields] Conditionals

 *  Resolved [snakesmaster](https://wordpress.org/support/users/snakesmaster/)
 * (@snakesmaster)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-conditionals/)
 * Hi!
 * I need to make a conditional for one custom field. Let’s say that I created a
   custom post called “price”. If is empty I want to hide de DIV container “custom_price”,
   if not I want to show it. Something like this:
 * `<div class="custom_price">Price: <?php the_field('the_price'); ?></div>`
 * Thaaank You!!!!!
 * [http://wordpress.org/extend/plugins/advanced-custom-fields/](http://wordpress.org/extend/plugins/advanced-custom-fields/)

Viewing 1 replies (of 1 total)

 *  [brasofilo](https://wordpress.org/support/users/brasofilo/)
 * (@brasofilo)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-conditionals/#post-2605480)
 * you will have to do a little tweak in the plugin so you can use jQuery for that
 * follow the code I posted in this thread
    [http://www.advancedcustomfields.com/support/discussion/1481/styling-the-custom-fields-in-the-admin#Item_13](http://www.advancedcustomfields.com/support/discussion/1481/styling-the-custom-fields-in-the-admin#Item_13)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Advanced Custom Fields] Conditionals’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [brasofilo](https://wordpress.org/support/users/brasofilo/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-conditionals/#post-2605480)
 * Status: resolved