Looking at your code, it appears all meta keys are prefixed with _cmb_
. Your start time key is text_datetime_timestamp
, so combined with the prefix, you want to fetch:
get_post_meta( get_the_ID(), '_cmb_text_datetime_timestamp', true );
Note the third parameter, which will retrieve a single value if set to true
, as it’s possible to save multiple values under a single key, which would result in an array of values.
The simplest way to see all of the keys your meta data is saved under, is via get_post_custom_keys
:
$custom_field_keys = get_post_custom_keys();
foreach( $custom_field_keys as $key => $value ) {
echo $key . " => " . $value . "<br />";
}
Put that in the loop and it will tell you the names of all of the keys your meta data is saved under.
Related Posts:
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Show metabox in custom-post-template depending on taxonomy term?
- Displaying Metabox value (custom post type taxonomy)
- Metabox not show in categories custom post type cmb2
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Advanced search form with filters for custom taxonomies and custom fields
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Custom Taxonomy as checkbox or dropdown
- wp_dropdown_categories in custom post type with custom taxonomy
- Changing the priority of a custom taxonomy’s metabox
- How do I remove all the metaboxes for a custom post type?
- WP_List_Table Inside Metabox Not Working on Submit
- Find callback function for custom taxonomy metabox
- Get all posts from custom post type and insert in select input as metabox
- Detect meta value changes when post is updated (post_updated)
- Unable to save custom taxonomy terms in a custom-built metabox
- How to select one major category (or custom taxonomy) for a custom post type?
- Having trouble with custom post type / meta box
- How can I include meta box content when searching?
- update a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Displaying Meta Box Image
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- How to add multiple featured image in meta box in post editor?
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Displaying custom posts only if custom meta box’s date is not expired
- Meta Box Only in CPT Edit Page, Not in Add New
- get_post_meta is returning image id
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Count posts with specific term_meta
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Populate Custom Fields in a Custom Post Type?
- Custom meta box data array: foreach not working correctly?
- Undefined Variable – Custom Post Type Meta
- Populate dropdown from one custom post type inside another custom post type
- How to check if user meta field is empty in conditional else statement
- How to duplicate entire custom post type
- A better way to add a meta box to custom post types
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Show Custom Post Type meta boxes only on Page Edit
- Ordering values entered in Custom Taxonomies
- Listing custom terms in custom post meta
- Permalinks: custom structure for taxonomy – tags?
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Meta Data for Custom Post Type not saving
- create custom meta box with default value
- Displaying a div from an assigned meta_value when on a page
- Display different information of a custom post type
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- Filter posts by tax (dropdown) and meta value
- Why do I have to press the “Update” button twice to save my meta box values?
- how to show records that don’t have custom meta value
- Values from meta-box not on $_POST
- Custom post type suddenly stoped working after WordPress 5 update
- Removing numerous Meta boxes from numerous CPTs
- Reusable metabox backend and frontend
- Get custom term meta problem on single post type
- How can I output WPAlchemy repeating fields meta values in my page template?
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- Save Metabox Custom Field Value
- Meta box data not saving
- WP_Meta_Query object with conditionals
- Related posts meta_query CPT
- Meta box with front-end styling
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Cannot Save MetaBox Data in Custom Post Type
- Add a class to post_class if more than one post shares same meta_value_num
- Function to return values from metabox
- Add a meta field to the list of results for a custom post type
- best way to use custom taxonomy, post type and meta in a job system
- Empty meta-box returns publishdate if no value is set?
- Custom Meta Box with variable number of fields
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
- PHP Warning with Custom Fields
- Get meta values from parent post and save in child post
- Custom taxonomy with custom post type archive page
- Add other all taxonomies as meta boxes to custom post type
- Saving Child Terms on front end not setting parent
- Order posts by meta value hiding posts instead of re-ordering
- Metaboxes in Loop
- Custom meta box data not saving
- Collect custom post in a calendar
- Delete custom post type metadata without deleting the post in admin area
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- Problem with ‘save_post’ hook not running
- WordPress custom post type
- Custom meta-box for all custom post types
- Edit post meta direct from post.php?
- Add different meta box based on taxonomy
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Values inside a custom field to determine which category posts to display
- Display a post count from a custom metabox selection
- Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy
- Advanced search form with filters for custom taxonomies and custom fields
- Post AND page parameter for WP function
- Use a Variable in update_post_meta as the $meta_key
- Automatically add custom taxonomy when meta value gets to a set number or beyond