{"id":1286,"date":"2013-12-27T23:14:35","date_gmt":"2013-12-27T14:14:35","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=1286"},"modified":"2013-12-27T23:15:26","modified_gmt":"2013-12-27T14:15:26","slug":"how-to-add-custom-field-in-custom-portfolio-type-post","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-add-custom-field-in-custom-portfolio-type-post\/","title":{"rendered":"How to add Custom field in custom portfolio type post"},"content":{"rendered":"<p>Here is solution to add custom field in your custom portfolio entries, for this you must activate the \u201ccustom fields\u201d manually.<br \/>\nOpen up portfolio.php OR php function where you registering post type &#8220;portfolio. portfolio_register() and search for:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">'supports' =&gt; array('title','thumbnail','excerpt','editor','comments')<\/pre>\n<p>Replace it with<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">'supports' =&gt; array('title','thumbnail','excerpt','editor','comments','custom-fields')<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is solution to add custom field in your custom portfolio entries, for this you must activate the \u201ccustom fields\u201d manually. Open up portfolio.php OR php function where you registering post type &#8220;portfolio. portfolio_register() and search for: &#8216;supports&#8217; =&gt; array(&#8216;title&#8217;,&#8217;thumbnail&#8217;,&#8217;excerpt&#8217;,&#8217;editor&#8217;,&#8217;comments&#8217;) Replace it with &#8216;supports&#8217; =&gt; array(&#8216;title&#8217;,&#8217;thumbnail&#8217;,&#8217;excerpt&#8217;,&#8217;editor&#8217;,&#8217;comments&#8217;,&#8217;custom-fields&#8217;)<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[653,652,725],"class_list":["post-1286","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-add-custom-field-in-custom-portfolio-type-post","tag-how-to-add-custom-field-in-custom-portfolio-type-post","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=1286"}],"version-history":[{"count":2,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1286\/revisions"}],"predecessor-version":[{"id":1288,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/1286\/revisions\/1288"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}