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

Add box with custom per-page properties

In WordPress these boxes are called “meta box” and to add one to your new/edit page screen you can use add_meta_box() function (look at the example at the bottom for the examples), you can also use this class which is nicely documented and does most of the job for you. Or you can use a plugin like Verve Meta Boxes which does all of the job for you and you just add the options you want form its UI.

Related Posts:

  1. post formats – how to switch meta boxes when changing format?
  2. Adding an assisting editor box to Post page
  3. Metabox Data not being saved [closed]
  4. Options to get my custom post type metadata via the WordPress API
  5. add post meta front end edit
  6. I can not display meta value in extras.php and template-tags.php
  7. Add post meta data date to event
  8. Check if any meta on the post has value then display content
  9. Get or set values in post meta
  10. I created a Custom Meta Box but it is not displaying the value on my post page
  11. update_post_meta() throws Uncaught error: Cannot create duplicate attribute
  12. Remove action of an external plugin after checking if custom post meta is set
  13. How we insert values into database using metabox WordPress?
  14. Post meta box data not saving
  15. Hide individual page title using checkbox in custom meta box?
  16. Most efficient way to get posts with postmeta
  17. What is the index [0] for on post meta fields?
  18. How to update_post_meta value as array
  19. What’s the point of get_post_meta’s $single param?
  20. Get a single post by a unique meta value
  21. Custom field metabox not showing in back-end
  22. Trying to get custom post meta through Jetpack JSON API [closed]
  23. Why is get_post_meta returning an array when I specify it as single?
  24. Add post meta based on another post meta value before publish post
  25. delete value 0 in post meta [closed]
  26. Can I safely delete a record, manually, in the wp postmeta table?
  27. Having trouble with custom post type / meta box
  28. update custom post type meta from a shortcode
  29. Exclude a category from the filed under list
  30. Are multiple values from get_post_meta guaranteed to be ordered?
  31. How to keep a check box in custom meta box for custom post type checked by default for add new post?
  32. Custom fields to save multiple values
  33. Show metabox in custom-post-template depending on taxonomy term?
  34. Add a post metadata if only the key and value does not exist
  35. How can I get values using key in Carbon Fields from Multiselect?
  36. wp_handle_upload error “Specified file failed upload test” but still creates attachment?
  37. WordPress Action Hooks and Post ID?
  38. Meta Box Only in CPT Edit Page, Not in Add New
  39. Get page->parent’s name?
  40. conditional function to change post-meta background image
  41. dynamically generating plugin syntax
  42. how to get all post with the same post meta?
  43. Populate Custom Fields in a Custom Post Type?
  44. Custom meta box data array: foreach not working correctly?
  45. How to check if user meta field is empty in conditional else statement
  46. Echo page title from page with custom meta datetime picker
  47. MySQL Query To Select Post By Postmeta
  48. Copy content stored in meta to post content
  49. How to programmatically customise the Contact Form7 notification email prior to sending? [closed]
  50. Is it possible to retrieve a post and its metadata at the same time?
  51. How can you include custom post meta in search without calling each key?
  52. How to create a button click counter meta box?
  53. meta box & callback function
  54. Post meta as array looks like string instead of array
  55. $_GET & $post_ID
  56. How to test the outcome of a wpdb query?
  57. get_post_meta as a list for drop down search filter
  58. Help with Post Meta
  59. How add multiple wp_editor_box to new post
  60. How do I manage custom meta in post revisions in the Block Editor era?
  61. Generate metadata for cloud images
  62. Migrating meta value to new meta value
  63. Insert multiple metas in one time
  64. How to extract data from a post meta
  65. count post meta values
  66. How can I tell if a post has been published at least once?
  67. Correct meta of Writing Meta Tags
  68. Save Metabox Custom Field Value
  69. How to add tags to post from frontend?
  70. Retrieve user_meta and copy to post_meta
  71. Empty meta-box returns publishdate if no value is set?
  72. getting the post_id from the post_meta
  73. Custom Meta Box with variable number of fields
  74. troubles with get_post_meta (and saving it)
  75. How to exclude posts by meta key value in the_post_navigation next prev links?
  76. update_post_meta not working with transition_comment_status
  77. How to save a Woocomerce metabox input as a metadata field
  78. Update post meta date always store 1970-01-07
  79. Is it possible to pass an whole array using custom field in wordpress?
  80. Attachment metadata has value of ‘1’
  81. Unable to update the meta boxes with multiple fields
  82. How do I update a specific value within array in a products metadata?
  83. Optimize WP Meta Query for large amount of post meta?
  84. use post meta in add_meta_boxes action
  85. Hide the_meta if no value
  86. php wp_insert data on front using a form
  87. Updating post_meta when updating a setting with the Settings API
  88. How to show specific meta keys of all posts in admin panel?
  89. wp_schedule_event not working
  90. add_post_meta not saved
  91. If custom field doesn’t exist, or exists and it’s true show title?
  92. Media library orphans
  93. WordPress join posts with meta values of array type
  94. How to make certain content of the post noindex and no follow. not entire post?
  95. Export posts with postmeta without ID?
  96. Metadata in loops
  97. How can I display my meta value in a textarea? [closed]
  98. Auto save title as custom meta field value
  99. Extend file format support for post thumbnails
  100. Why isn’t my embed_video WYSIWYG field updating when using update_post_meta?
Categories post-meta Tags metabox, post-meta
GUID field in wp_posts – relevance for attachments?
Popular Post With Thumbnail?

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