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
- Exclude function for custom pages, exclude custom ACF fields
- How to hide the author box of a specific user?
- Else/If Statement to Display Photo Descriptions
- Add date before entry title in Twenty Twelve
- Count foreach and display in menu php
- Removing “Powered by” footer using child theme PHP [closed]
- This function is deprecated; use mysql_real_escape_string() instead
- How do i wrap woocomerce attribute in list?
- Removing files programmatically
- Missing a text-domain esc_attr_e
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Overide Variable in Child Theme
- How to remove the space before the ellipsis in excerpt?
- Update post meta – Custom field does not match meta-key
- child parent styles enqueue order
- Output custom text field as unordered list
- Conditional featured image with youtube thumbnail
- Add URL parameter to all internal links using a specific theme
- How to add aria role and schema markup to custom walker container
- Adding an interior ‘hero’ area with some added php title customization
- get_page_templates only return templates with “home” in the filename
- Warning: call_user_func() expects parameter 1 to be a valid callback, function
- How can I use custom menus with a Bootstrap WordPress theme?
- Custom posts password protect
- Change MySQL PDO connection to a WPDB connection
- Call to undefined function error in plugin
- How to get post category list as select in front-end?
- How do I correct the code in php? [closed]
- `update_post_meta` not working anymore