Underscores in custom fields

Custom field names are arbitrary. The underscore hides it from the Custom Fields metabox on the post editing page. When referencing these custom fields in meta_query() or other functions, the underscore has to be used.

Source: conversation with @toscho, @rarst and @wyck in the chat room.

Leave a Comment