{"id":4949,"date":"2022-02-13T21:46:52","date_gmt":"2022-02-13T21:46:52","guid":{"rendered":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/?p=4949"},"modified":"2022-12-07T18:37:45","modified_gmt":"2022-12-07T18:37:45","slug":"add-meta-fields-of-the-custom-post-type","status":"publish","type":"post","link":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/2022\/02\/13\/add-meta-fields-of-the-custom-post-type\/","title":{"rendered":"Add Meta Fields Of The Custom Post Type"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">One advantage of custom post type is that you can add any meta fields using\u00a0<strong>ACF Plugin<\/strong>\u00a0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Usually, all kinds of posts have their own meta information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, product title, rating, price, categories and tags are belonged to product meta information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Generally speaking, you have to add meta information when make post type such as product, post and etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can add meta fields such as&nbsp;<em>like<\/em>&nbsp;or&nbsp;<em>dislike&nbsp;<\/em>when make custom post type.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By doing so, after people read articles, then they can express their feeling by checking&nbsp;<em>like&nbsp;<\/em>or&nbsp;<em>dislike<\/em>&nbsp;meta.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then let\u2019s see together how to add meta fields.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1<\/strong>&nbsp;\u2013 First of all, you have to install&nbsp;<strong>ACF Plugin<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"368\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-1-1024x368-1.jpg\" alt=\"\" class=\"wp-image-4952\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-1-1024x368-1.jpg 1024w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-1-1024x368-1-768x276.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2<\/strong>&nbsp;\u2013 Please set each option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"454\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-3-1024x454-1.jpg\" alt=\"\" class=\"wp-image-4953\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-3-1024x454-1.jpg 1024w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-3-1024x454-1-768x341.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"130\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-4-1024x130-1.jpg\" alt=\"\" class=\"wp-image-4954\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-4-1024x130-1.jpg 1024w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/02\/acf-4-1024x130-1-768x98.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3<\/strong>&nbsp;\u2013 After finish setting options, please click&nbsp;<code class=\"code-grey\">Publish<\/code>&nbsp;button.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One advantage of custom post type is that you can add any meta fields using\u00a0ACF Plugin\u00a0. Usually, all kinds of posts have their own meta information. For example, product title, rating, price, categories and tags are belonged to product meta information. Generally speaking, you have to add meta information when make post type such as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[36],"tags":[],"class_list":["post-4949","post","type-post","status-publish","format-standard","hentry","category-custom-post-types"],"_links":{"self":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts\/4949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/comments?post=4949"}],"version-history":[{"count":2,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts\/4949\/revisions"}],"predecessor-version":[{"id":8243,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts\/4949\/revisions\/8243"}],"wp:attachment":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/media?parent=4949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/categories?post=4949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/tags?post=4949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}