This question already has an answer here:

In wp_postmeta table I noticed that some of the keys are with '_' (underscore) prefix and and some are without _

What is the major difference between these fields and how they can be used while theming ?

Is there any special use of fields with _ ?

Most of the plugins used this approach to create meta keys but there is not codex on wordpress regarding meta key naming, its not sure if there is any technical difference between these key names.

marked as duplicate by Milo, Howdy_McGee, TheDeadMedic, Pieter Goosen, s_ha_dum Apr 10 '15 at 18:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The underscore prefix are private, these meta fields will be hidden and will not be shown as custom fields in the post backend screens. Those meta fields without the underscore prefix are public fields and shows up as custom fields in the post screens

  • 1
    I've voted to keep this closed as it is still a duplicate, however, I have undeleted my answer. Please see my answer – Pieter Goosen Apr 10 '15 at 19:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.