Post Meta
Post meta is metadata attached to a post object in WordPress.
It is commonly used to store extra structured values on posts, pages, attachments, and custom post types beyond the default core fields.
What it does
Post meta lets developers and plugins store additional data on a post record.
It is commonly used for:
- Custom field values
- Feature toggles
- Layout settings
- Relationships and IDs
- Structured content attributes that do not belong in the main editor body
Core concepts
Metadata for posts
Post meta is one subtype of metadata in WordPress.
If the metadata is attached to a post object, it is post meta.
Custom fields
A custom field on a post is often stored as post meta.
Tools such as ACF and Meta Box AIO provide higher-level interfaces for managing that data.
Native WordPress functions
WordPress provides native functions such as get_post_meta(), update_post_meta(), and register_post_meta() for working with post meta in PHP.
Common use cases
- Extra fields on blog posts or pages
- Structured data on custom post types
- SEO or display settings stored per content item
- Values collected through a meta box or field UI
- Plugin-specific configuration attached to posts
Practical notes
- Post meta is attached to the post object, not to the taxonomy term or user account.
- It is one of the most common storage layers behind WordPress custom field workflows.
- Using clear keys and typed values makes post meta much easier to maintain over time.
- A post can have many different meta keys, and the same key can exist across many posts.
Sources Used
- https://developer.wordpress.org/reference/functions/get_post_meta/
- https://developer.wordpress.org/reference/functions/update_post_meta/
- https://developer.wordpress.org/reference/functions/register_post_meta/
Frequently Asked Questions
Is post meta the same as a custom field?
A custom field is often implemented as post meta, but post meta is the storage concept and custom field is the content-modeling interface.
Does post meta only apply to blog posts?
No. In WordPress, it also applies to pages, attachments, and custom post types.
Do plugins like ACF use post meta?
Often yes. Plugins such as ACF and Meta Box AIO commonly store post-level field data as post meta.