{"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

One advantage of custom post type is that you can add any meta fields using\u00a0ACF Plugin<\/strong>\u00a0.<\/p>\n\n\n\n

Usually, all kinds of posts have their own meta information.<\/p>\n\n\n\n

For example, product title, rating, price, categories and tags are belonged to product meta information.<\/p>\n\n\n\n

Generally speaking, you have to add meta information when make post type such as product, post and etc.<\/p>\n\n\n\n

You can add meta fields such as like<\/em> or dislike <\/em>when make custom post type.<\/p>\n\n\n\n

By doing so, after people read articles, then they can express their feeling by checking like <\/em>or dislike<\/em> meta.<\/p>\n\n\n\n

Then let\u2019s see together how to add meta fields.<\/p>\n\n\n\n

Step 1<\/strong> \u2013 First of all, you have to install ACF Plugin<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Step 2<\/strong> \u2013 Please set each option.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

Step 3<\/strong> \u2013 After finish setting options, please click Publish<\/code> button.<\/p>\n","protected":false},"excerpt":{"rendered":"

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 […]<\/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}]}}