{"id":853,"date":"2022-08-30T15:08:16","date_gmt":"2022-08-30T15:08:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/how-to-use-additonal_fields-in-views_handler_field-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:08:16","modified_gmt":"2022-08-30T15:08:16","slug":"how-to-use-additonal_fields-in-views_handler_field-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-use-additonal_fields-in-views_handler_field-collection-of-common-programming-errors\/","title":{"rendered":"how to use additonal_fields in views_handler_field?-Collection of common programming errors"},"content":{"rendered":"<p>I made a list by views from a custom content type. then I tried to convert this list to a form. everything works fine when I use the views_handler_field class for &#8220;title&#8221; field. the title field convert to a textfield and the form submits successfully. but when I try to create a same handler for a &#8220;custom field&#8221; I got this error :<\/p>\n<blockquote>\n<p>SQLSTATE[42S22]: Column not found: 1054 Unknown column &#8216;node.field_pre_register_description&#8217; in &#8216;field list&#8217;<\/p>\n<\/blockquote>\n<p>the code that I use is :<\/p>\n<pre><code>&gt; $this-&gt;additional_fields['nid'] = 'nid';\n&gt; $this-&gt;additional_fields['field_pre_register_description'] =\n&gt; 'field_pre_register_description';\n<\/code><\/pre>\n<p>how should I introduce the custom fields to additional_fields array?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:49:04. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I made a list by views from a custom content type. then I tried to convert this list to a form. everything works fine when I use the views_handler_field class for &#8220;title&#8221; field. the title field convert to a textfield and the form submits successfully. but when I try to create a same handler for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-853","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}