WordPress glossaryMetadata is data about other data. In WordPress it is extra information stored with posts, users, terms, and comments, such as custom fields.
Metadata describes something else. A post's content is the article; its metadata is everything about the article: who wrote it, when it was published, which category it is in, which template it uses, and any extra details a plugin has attached. On a website the word covers two related things: the data a CMS stores alongside each piece of content, and the descriptive tags in a page's HTML that browsers, social networks, and search engines read.
Metadata in WordPress
WordPress stores a fixed set of fields for each post (title, content, excerpt, author, dates, status) and puts everything else in four meta tables, one for each kind of object:
wp_postmetafor posts, pages, products, attachments, and other post types.wp_usermetafor users, which holds profile details and per-user settings.wp_termmetafor categories, tags, and other taxonomy terms.wp_commentmetafor comments.
Each row is a simple pair: a key and a value tied to an object's ID. A WooCommerce product's price, a page's template, the sizes WordPress generated for an image, and an SEO plugin's custom title for a post are all stored this way. Keys that start with an underscore are treated as private and hidden from the Custom Fields panel.
Custom fields
Custom fields are the editor-facing side of post meta. In the block editor, turn them on under Preferences, then General, then Advanced; in the classic editor, under Screen Options. Each field is a name and a value, such as event_date and 2026-03-14.
The built-in panel is bare, so most sites use a plugin such as Advanced Custom Fields to build proper forms with date pickers, image fields, and repeaters. Developers read and write meta with functions such as get_post_meta() and update_post_meta(), and register it with register_post_meta() so it is available in the REST API and the block editor.
Metadata in a page's HTML
The other kind of metadata lives in the page's <head>:
- Title tag: the page title shown in browser tabs and, usually, as the headline in search results.
- Meta description: a summary search engines may show under the title. Google often writes its own from the page text, so treat it as a suggestion.
- Robots meta tag: instructions such as
noindex. - Canonical link: which URL is the preferred version of the page.
- Open Graph and similar tags: the title, description, and image used when the page is shared on social networks.
- Structured data: machine-readable details, usually in JSON-LD, about articles, products, events, or the business.
Google ignores the meta keywords tag, so there is no reason to fill it in. WordPress core outputs the title tag and a robots tag; SEO plugins such as Yoast SEO and Rank Math add the description, social tags, and structured data, and store their settings for each post as post meta.
Why it matters
Good metadata does practical work. Categories, tags, and dates help readers find and judge content. A clear title tag and description influence whether someone clicks a search result. Social tags decide how a shared link looks. Custom fields let a site show structured information, such as event dates, prices, or ratings, consistently across hundreds of pages and filter or sort by it.
Common problems
- Bloated meta tables. Plugins often leave their meta behind after they are deleted, and large stores can build up millions of rows. Clean up carefully, with a backup, since some of that data may still be in use.
- Slow meta queries. Filtering or sorting by a meta value is slow on big sites, because meta values are not indexed in the database. Use a taxonomy for things you filter by often.
- Duplicate SEO data. Running two SEO plugins, or a plugin plus a theme that also outputs meta tags, can produce two descriptions or two canonical tags. Check the page source.
- Exposed image metadata. Photos can carry EXIF data such as camera details and, sometimes, GPS location. Strip it before uploading if privacy matters.
See also user profile, which is largely made of user meta, and template tag, the functions themes use to print it.