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

Documentation for post meta

There is no official documented list of all possible post meta keys in core. The closest I could for anything unofficial was this answer on Stack Exchange:

You probably don’t want to use the following post meta keys:

  • _thumbnail_id – Used to store the featured image ID
  • _edit_last – Used by the Heartbeat API
  • _edit_lock – Used by the Heartbeat API
  • _wp_page_template – Stores the page template.
  • _wp_attached_file
  • _wp_attachment_metadata
  • _menu_item_{url, object, object_id, target, classes, xfn, ... }

as your custom meta keys, as they might be overwritten by the
WordPress Core.

However this is over 3 years old and not comprehensive. It’s only based on the answering user checking for all the keys in their database. You’ll notice that _wp_old_slug is missing, for example.

Related Posts:

  1. Documentation for post meta
  2. get posts meta query returning the latest post if no meta key found
  3. How to get meta value based on latest post id with group by term name
  4. How to do a meta query using REST-API in WordPress 4.7+?
  5. Use REGEXP in WP_Query meta_query key
  6. Meta query terribly slow
  7. meta_query sorting by 2 keys
  8. Get result from meta_query() between two numbers
  9. How to handle optional end date in compare clause in meta_query
  10. Using meta_query on pre_get_posts to exclude a particular meta_key value
  11. Meta compare with date (stored as string) not working
  12. Getting attachments by meta value
  13. Query between two meta keys
  14. Ordering posts having multiple post-meta date fields
  15. Archives for custom post type based on a “date” meta value
  16. Custom Queries: Joining On Meta Values From Two Custom Post Types
  17. How to check a single number value against an array of meta_key values?
  18. How Can I save multiple records in same meta key?
  19. get_users meta_query
  20. Meta query with multiple logic (AND / OR)
  21. Best practice – Meta Query vs. post_clauses for “left join” ordering
  22. Meta query interfering with orderby relevance
  23. meta_query with multiple values
  24. WooCommerce conditional meta query
  25. Different page parameters inside query
  26. Return posts with specific meta key first, but the rest in alpha order by last name
  27. How to update single value in multi dimensional Post Meta?
  28. meta_query key value from array
  29. What is an efficient way to query based on post_meta?
  30. LIKE %…% Meta Query
  31. WP_Query not working as expected for attachments and custom meta_query
  32. I can’t set meta_key in my custom post type query
  33. Multiple Values stored as array in Meta Query
  34. Order by nested named meta queries with ‘exists’ and ‘not exists’
  35. Advanced orderby with multiple meta_query
  36. Arrange Posts By Date In Order Of Closest To The Current Date
  37. Using get_terms() with meta_query parameters
  38. How can I create a WP_Query that returns posts where one meta_value
  39. WP_User_Query with meta_query array relation ‘OR’
  40. Comparisson between date() and a date from wp_postmeta
  41. WordPress altering my custom query, How to fix it?
  42. Ordering posts by anniversary using only day and month
  43. WP Meta Query for some meta (array) values
  44. Can’t sort order of wp_query with 2 meta keys
  45. get_post_meta causes database queries
  46. How to display liked posts of current user in wordpress?
  47. How to get sum of meta_values of a meta_key in wp_query according to conditions
  48. meta_query problem
  49. Custom Upcoming Events List for Events Manager Plugin
  50. Very slow query with meta_query on large database
  51. How to use meta_query to check if a meta field has something set?
  52. Displaying posts with only upcoming dates according their custom field date value
  53. Exporting Data from WordPress into a flat table
  54. How metadata API works?
  55. Order posts by meta value and Date
  56. How to exlude posts that have certain meta_value?
  57. User Relationship
  58. Displaying Metabox value (custom post type taxonomy)
  59. meta_query results not the same with and without spaces
  60. Which is best in the following scenario : post_meta vs custom table vs parent/child posts
  61. meta_query all posts between to ages
  62. How to make a WP REST API query with meta_query in WP4.7?
  63. WordPress Core – Optimizing meta_query generated SQL?
  64. Edit post_content on posts with Featured Image
  65. What Is meta_id In wp_postmeta?
  66. Nested Queries using meta_query
  67. Display no post when metavalue is 0
  68. Use both meta query and tax query
  69. Wildcard with LIKE operator in Meta query
  70. Get meta info related to current post
  71. meta_query, number comparison, not quite working as it should
  72. Meta Query Compare with Date
  73. Query posts only if meta_value is not empty
  74. Query metas (and not : query posts by metas)
  75. Does meta_query working with value paramater higher then 999?
  76. meta_query keys and sticky posts
  77. Searching by meta values showing inappropriate result
  78. How to stop wp_postmeta from being called on archive and search pages?
  79. WP_POSTMETA – What do these values mean inside the data structure?
  80. How to pass user meta_key and meta_value (values as array)
  81. WP_Query ordered by meta_value_num doesn’t fetch posts without this meta field
  82. How to make Meta Query case sensitive?
  83. Performance when getting post meta for post retrieved by meta value
  84. Query Multiple values for same key
  85. Get attachment by meta_key value
  86. Custom post type archive with rand and meta_value
  87. Comparing a field with several values at once with meta_query
  88. Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
  89. Meta query with a sub query group possible?
  90. meta_query compare=’!=’ with multiple custom fields
  91. Query posts with numeric meta values within a given range
  92. Get posts between custom dates
  93. How to add a new meta key and assign timestamp to posts
  94. Fastest way to do meta query when I don’t need the actual posts, and just need post_id?
  95. meta_query not working on live site
  96. Fetch Record based on meta key dates
  97. WP_Query with meta_query for children
  98. How to query post only with different excerpt?
  99. How do you get Posts by multiple meta_keys and meta_values with the Rest API V2?
  100. Query custom field with date
Categories meta-query Tags meta-query, post-meta
Removing custom meta data
Search media by title and description – Frontend

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