So awkwardly realised I’d been going about this whole thing in a stupid roundabout way and in fact Milo above in the comments is completely right, and proves that the codex still has secrets for everyone, or maybe just me.
The eureka (or durr-eka) moment came after reading this post here about setting up and editing the content of the metaboxes.
Instead of calling the individual meta to be edited using get_post_meta
I used the get_post_custom()
and simply cycled through every post meta entry using a foreach
loop and a simple isset
form for each generated.
Apologies for the obvious question but thought I’d answer it myself rather than delete it in case anyone else out there is doing it wrong too.
Related Posts:
- Display a post count from a custom metabox selection
- How to force one column layout on custom post type edit page?
- How can I add a column/s to wp_posts table?
- How do I remove all the metaboxes for a custom post type?
- WP_List_Table Inside Metabox Not Working on Submit
- Add metabox with media uploader in a custom post type [duplicate]
- Get all posts from custom post type and insert in select input as metabox
- Detect meta value changes when post is updated (post_updated)
- Having trouble with custom post type / meta box
- add_meta_box: Datepicker like the one for postdate?
- 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
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Displaying Meta Box Image
- Change Post Title Edit Box
- Multiple information using custom post type
- 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?
- Show metabox in custom-post-template depending on taxonomy term?
- 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
- Displaying Metabox value (custom post type taxonomy)
- How can I display my custom metaboxes on a custom post template?
- Meta Box Only in CPT Edit Page, Not in Add New
- get_post_meta is returning image id
- WordPress Orderby Numeric Value Not Working
- Populate Custom Fields in a Custom Post Type?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Custom meta box data array: foreach not working correctly?
- Undefined Variable – Custom Post Type Meta
- Show the same Article Available in Other Categories
- 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
- Post image in WordPress not appearing on home page
- Changing custom type name hides the posts
- Update Post Meta for a logged in user
- A better way to add a meta box to custom post types
- Two Custom Post Types Many to Many Relationship
- Update postmeta Parent when post_status child change
- Metabox not show in categories custom post type cmb2
- Show Custom Post Type meta boxes only on Page Edit
- 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
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- Why do I have to press the “Update” button twice to save my meta box values?
- Values from meta-box not on $_POST
- Custom post type suddenly stoped working after WordPress 5 update
- Batch Extract Date from post title and put into ACF custom field
- 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
- Empty meta-box returns publishdate if no value is set?
- Custom Meta Box with variable number of fields
- Create a custom post type based on ‘Post’
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Get_post_custom not fetching value from array wordpress
- Add a form in every post and save data in post meta
- SELECT custom post type and its meta in SQL
- Save data is post using php front end
- Show posts from WP Custom Post Type selected from a field in a metabox
- $_POST from a Meta Box
- Get meta values from parent post and save in child post
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- Metaboxes in Loop
- Custom meta box data not saving
- update a posts of other custom post type
- Collect custom post in a calendar
- Delete custom post type metadata without deleting the post in admin area
- Problem with ‘save_post’ hook not running
- How to make post page unique and show it on home page?
- How to Arrange Support => Thumbnail
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- How to create content automatically when a post is published?
- Top 30 Songs using Custom Post Type
- 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
- Canot save post if any meta box was empty
- I am having a problem with fetching product data in the Gutenberg block editor
- Keep display metadata value on backend – Custom Metabox
- how to delete all users and posts based on ‘user_meta’?
- Getting posts under the custom post type ui category
- Storing posts from query and accessing later via AJAX call
- If post has custom field then display css-class
- Meta Key Value in current-user-only loop
- Push metadata in array