{"id":2127,"date":"2017-09-15T05:15:55","date_gmt":"2017-09-15T05:15:55","guid":{"rendered":"http:\/\/docs.contentviewspro.com\/?p=2127"},"modified":"2023-12-29T03:35:34","modified_gmt":"2023-12-29T03:35:34","password":"","slug":"add-new-custom-field-wordpress-post","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/add-new-custom-field-wordpress-post\/","title":{"rendered":"Add custom field to posts, pages"},"content":{"rendered":"<style>h5 {margin: 20px 0;}<\/style>\n<p>WordPress has the ability to assign custom fields to a post. Each custom field is handled with key\/value pairs. The key is the name of the custom field. The value is the information that you want to store in that custom field.<\/p>\n<p>To add a new custom field to a WordPress post, you need to <ins>edit the post<\/ins>.<br \/>\nIn the post editing page:<\/p>\n<ul>\n<li>scroll down to the area titled <strong>Custom Fields<\/strong><\/li>\n<li>enter name and value of the custom field to the <strong>Name<\/strong> and <strong>Value<\/strong> columns<\/li>\n<li>click <strong>Add Custom Field<\/strong> button to save this custom field<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-258\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2015\/07\/add-custom-field.png\" alt=\"add-custom-field\" width=\"837\" height=\"229\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2015\/07\/add-custom-field.png 837w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2015\/07\/add-custom-field-300x82.png 300w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2015\/07\/add-custom-field-768x210.png 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><\/p>\n<p>If this is the first custom field on your WordPress site, you might need to click &#8220;Enter new&#8221; link to start adding the new custom field.<\/p>\n<h2 id=\"enable\">Couldn&#8217;t find &#8220;Custom Fields&#8221; area<\/h2>\n<ul>\n<li>Custom fields are hidden by default, at the first time, you need to enable it:<br \/>\n<h5> For WordPress 5.0 and later<\/h5>\n<p>+ For older versions of WordPress, click the ellipsis icon (near the gear icon), click <strong>Options<\/strong> and check the <strong>Custom Fields<\/strong> box (under &#8220;Advanced Panels&#8221;).<\/p>\n<p>+ For newer versions of WordPress, click the ellipsis icon (near the gear icon):<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"287\" height=\"204\" class=\"alignnone wp-image-4827 size-full\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted.png\" \/><\/p>\n<p>click <strong>Preferences:<br \/>\n<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"274\" class=\"alignnone wp-image-4828 size-full\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted-1.png\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted-1.png 360w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted-1-300x228.png 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/p>\n<p>click <strong>Panels<\/strong> and check the <strong>Custom Fields<\/strong> box (under &#8220;Additional&#8221;):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"711\" height=\"410\" class=\"alignnone wp-image-4829 size-full\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted-2.png\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted-2.png 711w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Pasted-2-300x173.png 300w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/p>\n<hr>\n<h5> For WordPress 4.9.9 and prior<\/h5>\n<p>+ click on <strong>Screen Options<\/strong> tab at top right corner of the page:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2596\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/CVP-Screen-options.png\" alt=\"WordPress Screen Options\" width=\"445\" height=\"335\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/CVP-Screen-options.png 445w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/CVP-Screen-options-300x226.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/p>\n<p>+ select the <strong>Custom Fields<\/strong> checkbox in the expanded area:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2858\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Enable-WordPress-custom-field.png\" alt=\"Enable WordPress custom field\" width=\"736\" height=\"200\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Enable-WordPress-custom-field.png 736w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2017\/09\/Enable-WordPress-custom-field-300x82.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/li>\n<li>If you can&#8217;t see the <strong>Custom Fields<\/strong> option, the current post type might not support custom field.<br \/>\nTo add a new custom field for this post type, you can install a custom field plugin (for example: Advanced Custom Fields), it will help you to add a custom field to any post types easily.<\/li>\n<\/ul>\n<blockquote><p>After adding custom field, you can show custom field easily (<a href=\"https:\/\/contentviewspro.com\/documentation\/article\/how-to-show-wordpress-custom-field\/\">read more<\/a>)<\/p><\/blockquote>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress has the ability to assign custom fields to a post. Each custom field is handled with key\/value pairs. The key is the name of the custom field. The value is the information that you want to store in that custom field. To add a new custom field to a WordPress post, you need to &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/add-new-custom-field-wordpress-post\/\"> <span class=\"screen-reader-text\">Add custom field to posts, pages<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[52],"doc_tag":[13],"class_list":["post-2127","docs","type-docs","status-publish","hentry","doc_category-custom-field","doc_tag-custom-field"],"year_month":"2026-09","word_count":287,"total_views":"11","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"Custom Field (core, ACF, Metabox, etc.)","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/custom-field\/"}],"doc_tag_info":[{"term_name":"custom field","term_url":"https:\/\/contentviewspro.com\/documentation\/tags\/custom-field\/"}],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=2127"}],"version-history":[{"count":7,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2127\/revisions"}],"predecessor-version":[{"id":5605,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2127\/revisions\/5605"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2127"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2127"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}