I think what you are looking for is something like:
<?php $post = get_post_meta($post->ID, '_cmb_fe_wysiwyg', true) ; if (!empty($post)) { ?>
<div id="ingredientsNeeded">
<h3>Ingredients</h3>
<?php echo wpautop( get_post_meta( get_the_ID(), $post . '_cmb_fe_wysiwyg', true ) );?>
</div>
<?php } ?>
This will check that the value is empty and if so will hide the div
Related Posts:
- How can update custom meta for all posts
- How to update custom fields using the wp_insert_post() function?
- How to automatically apply woocommerce product title to all product images alt tags?
- How to display multiple Post meta_key/meta_values by SQL query
- the_post_thumbnail() based on the Post ID
- How to use multiple query with same meta key
- Add custom field to attachments in a specific category
- Use ajax to update_post_meta
- how to increase custom post value by one most efficiently?
- How to Display Image Meta underneath EVERY image in EVERY post
- How can I create a list of page titles from custom meta values?
- Passing the custom field values in the wp_get_current_user array function
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- get_post_meta not working on publishing
- Firing schema via code in functions.php doesn’t work
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Trying to retrieve post meta
- Which PHP page is the Default Posts Page
- Is it possible to retrieve all posts with a certain value for metadata?
- Non-Closing PHP Query in WordPress Loop
- How to check if a PHP string is different than meta field?
- Can’t save php string to a custom field
- Why does this update_post_meta function not delete the custom field itself?
- How to show/hide php table rows based on the content of custom fields
- how to get serialized post meta
- Custom meta box values are not getting saved for my custom post type
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- WordPress loop by meta key that is an array? and how loop multiple arrays
- WP All Import / Update stock quantity from multiple XML files
- How to store multiple custom meta box
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- How to add data to a custom field at the wp_users table?
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Order a WP_Query by meta value where the value is an array
- Add a custom class to the body tag using custom fields
- Define category ID using get_post_meta
- Unable to Call More than One Meta Box Output
- Conditional On custom field plugin metabox
- WordPress stripping out custom field tags
- How to check post meta isset or not empty during publish/save post?
- Delete images from media library when user deletes an image from ACF Gallery
- Updating Metadata with Shortcode
- Order category posts by last word of custom field
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Products listing check if meta checkbox is checked
- Trying to update Woocommerce meta values
- How to add and subtract user meta values after post meta update
- Is it possible to update the dataset using update_post_meta
- How to update custom fields when post is published?
- Block error message in foreach loop when looping through ACF field
- Hide a div if the fiels is empty
- Delete post meta by serialized meta value
- How do I get the value of a current user’s custom field?
- WP post meta – for loop inside for loop
- Store custom field’s multiple values in one user meta key
- Get field in readable word
- When working with a post, almost all wp_postmeta are deleted
- Updating Lat and Lng of posts automatically gives sporadic results
- Postmeta not saving
- If custom field doesn’t exist, or exists and it’s true show title?
- get_post_meta no longer working
- Display custom meta box in my template file
- ACF Date fileds to Age Convert [closed]
- Metadata on the WP_Post object
- How to display the date under the post title?
- Appending an ACF custom field to the page title
- How do I get a function to work in single.php
- How to pass value to add_filter wpcf7_form_tag from another function?
- Custom Admin Menu Report for Specific User ID
- ACF number less than comparison not working
- Cleaning up WordPress to improve performance?
- post meta data clearing on autosave
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- If Meta Checkbox is checked, do something?
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Css loads very slow [closed]
- how to test for all children (including multilevel grand-childern) of page
- Dilemma of Populating all the categories in a drop down list
- Add item to top of menu using a filter in functions.php
- Limit Taxonomy Output in Conditional Statement
- wp_redirect only works on main site and not on other sites
- require_once() if a product in woocommerce contains a tag [closed]
- Shortcode for Listing Users from Meta Value?
- Display css ONLY on most recent post of specific category?
- Show field if it has contents on Advanced Custom Fields
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- Woocommerce order status payment
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Display logged in user name and lastname on page
- How to Add a cutsom slug to my custom author role
- How to output the taxonomies that are assigned to each custom post?
- Display current user metadata on WordPress page
- What is wrong in this code?
- Modify php code to pass a page id as a parameter in order to create a breadcrumb
- WordPress 2014 Theme – Featured Content with multiple tags?
- Add custom fields after post/page title
- Woocommerce – Shipping tax class based on cart items not using the highest tax available