Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Edit post meta direct from post.php?

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:

  1. Display a post count from a custom metabox selection
  2. How to force one column layout on custom post type edit page?
  3. How can I add a column/s to wp_posts table?
  4. How do I remove all the metaboxes for a custom post type?
  5. WP_List_Table Inside Metabox Not Working on Submit
  6. Add metabox with media uploader in a custom post type [duplicate]
  7. Get all posts from custom post type and insert in select input as metabox
  8. Detect meta value changes when post is updated (post_updated)
  9. Having trouble with custom post type / meta box
  10. add_meta_box: Datepicker like the one for postdate?
  11. How can I include meta box content when searching?
  12. update a post meta from a single table cell TablePress
  13. update custom post type meta from a shortcode
  14. Custom Meta Boxes – Nonce Issue – Move to trash issue
  15. Displaying Meta Box Image
  16. Change Post Title Edit Box
  17. Multiple information using custom post type
  18. How to keep a check box in custom meta box for custom post type checked by default for add new post?
  19. How to add multiple featured image in meta box in post editor?
  20. Show metabox in custom-post-template depending on taxonomy term?
  21. Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
  22. Displaying custom posts only if custom meta box’s date is not expired
  23. Displaying Metabox value (custom post type taxonomy)
  24. How can I display my custom metaboxes on a custom post template?
  25. Meta Box Only in CPT Edit Page, Not in Add New
  26. get_post_meta is returning image id
  27. WordPress Orderby Numeric Value Not Working
  28. Populate Custom Fields in a Custom Post Type?
  29. Adding dropdown select meta box to custom post type – seems restAPI is interfering
  30. Custom meta box data array: foreach not working correctly?
  31. Undefined Variable – Custom Post Type Meta
  32. Show the same Article Available in Other Categories
  33. Populate dropdown from one custom post type inside another custom post type
  34. How to check if user meta field is empty in conditional else statement
  35. Post image in WordPress not appearing on home page
  36. Changing custom type name hides the posts
  37. Update Post Meta for a logged in user
  38. A better way to add a meta box to custom post types
  39. Two Custom Post Types Many to Many Relationship
  40. Update postmeta Parent when post_status child change
  41. Metabox not show in categories custom post type cmb2
  42. Show Custom Post Type meta boxes only on Page Edit
  43. Can’t publish custom post type – “You are not allowed to edit this post.”
  44. Meta Data for Custom Post Type not saving
  45. create custom meta box with default value
  46. Displaying a div from an assigned meta_value when on a page
  47. How to Echo Metadata Value in Currency Format
  48. Issue on Working with Metabox – Checkbox to enable Sale Items
  49. Why do I have to press the “Update” button twice to save my meta box values?
  50. Values from meta-box not on $_POST
  51. Custom post type suddenly stoped working after WordPress 5 update
  52. Batch Extract Date from post title and put into ACF custom field
  53. How can I output WPAlchemy repeating fields meta values in my page template?
  54. Meta box data is saved but NOT displayed in the meta box text field. Why?
  55. Save Metabox Custom Field Value
  56. Meta box data not saving
  57. WP_Meta_Query object with conditionals
  58. Related posts meta_query CPT
  59. Meta box with front-end styling
  60. Sanitaizing Select Optin For Custom Post Type Metabox in WP
  61. How to retrive Custom Post Type Meta Fields in Custom WP_Query
  62. Cannot Save MetaBox Data in Custom Post Type
  63. Add a class to post_class if more than one post shares same meta_value_num
  64. Function to return values from metabox
  65. Add a meta field to the list of results for a custom post type
  66. Empty meta-box returns publishdate if no value is set?
  67. Custom Meta Box with variable number of fields
  68. Create a custom post type based on ‘Post’
  69. Custom Post Type meta data getting deleted on bulk editing taxonomies
  70. Get_post_custom not fetching value from array wordpress
  71. Add a form in every post and save data in post meta
  72. SELECT custom post type and its meta in SQL
  73. Save data is post using php front end
  74. Show posts from WP Custom Post Type selected from a field in a metabox
  75. $_POST from a Meta Box
  76. Get meta values from parent post and save in child post
  77. How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
  78. Metaboxes in Loop
  79. Custom meta box data not saving
  80. update a posts of other custom post type
  81. Collect custom post in a calendar
  82. Delete custom post type metadata without deleting the post in admin area
  83. Problem with ‘save_post’ hook not running
  84. How to make post page unique and show it on home page?
  85. How to Arrange Support => Thumbnail
  86. Howto: use existing post_meta as options for a different metabox (checkboxes or list)
  87. How to create content automatically when a post is published?
  88. Top 30 Songs using Custom Post Type
  89. Post AND page parameter for WP function
  90. Use a Variable in update_post_meta as the $meta_key
  91. Automatically add custom taxonomy when meta value gets to a set number or beyond
  92. Canot save post if any meta box was empty
  93. I am having a problem with fetching product data in the Gutenberg block editor
  94. Keep display metadata value on backend – Custom Metabox
  95. how to delete all users and posts based on ‘user_meta’?
  96. Getting posts under the custom post type ui category
  97. Storing posts from query and accessing later via AJAX call
  98. If post has custom field then display css-class
  99. Meta Key Value in current-user-only loop
  100. Push metadata in array
Categories custom-post-types Tags custom-post-types, metabox, post-meta, posts
WordPress: insert a custom post type instance as an option for a custom taxonomy
Assigning image to Post-Type won’t work anymore: exceeded time?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress