{"id":13030955,"date":"2020-06-24T17:36:58","date_gmt":"2020-06-24T17:36:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/insert-post-categories-as-hidden-value\/"},"modified":"2020-06-24T17:36:58","modified_gmt":"2020-06-24T17:36:58","slug":"insert-post-categories-as-hidden-value","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/insert-post-categories-as-hidden-value\/","title":{"rendered":"Insert post categories as hidden value?"},"content":{"rendered":"<p>Is there a method to insert the categories of the post (or page) surrounding the embedded form as a submitted value (preferably hidden)?<\/p>\n<p>Scenario: I have 10 posts with different categories that all ask for a registered user to submit an answer to a question. I&#8217;d rather have one form that I can embed ten times, rather than ten unique forms. However, I need to know which post the submission came from. Pulling the post category and added that as part of the form submission would be ideal. <\/p>\n","protected":false},"template":"","class_list":["post-13030955","topic","type-topic","status-publish","hentry","topic-tag-categories","topic-tag-forms","topic-tag-posts"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13030955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13030955\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13030955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}