{"id":1744115,"date":"2020-08-19T11:21:06","date_gmt":"2020-08-19T11:21:06","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1744115"},"modified":"2020-10-12T15:05:22","modified_gmt":"2020-10-12T15:05:22","slug":"displaying-form-data","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/displaying-form-data\/","title":{"rendered":"Displaying Form Data"},"content":{"rendered":"\n<p>The forms that you create with Toolset always match a post-type (pages, posts and custom post types). The fields in forms map to WordPress custom fields. In other lessons, you already learned how to display content with Toolset. This lesson will not teach you new methods for displaying content, but only remind you how to use Toolset&#8217;s content-display features for form entries.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying lists of form entries<\/h2>\n\n\n\n<p>Like we said, form entries are ordinary WordPress &#8220;posts&#8221; (or &#8220;users&#8221; for user-forms). To display lists of posts, you have two options:<\/p>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"360284519b991feb492b582c7d84725f\"><ul>\n  <li><a href=\"https:\/\/toolset.com\/de\/course-lesson\/creating-a-view\/\">Views<\/a> &#8211; allow you to add lists of items to any page<\/li>\n  <li><a href=\"https:\/\/toolset.com\/de\/course-lesson\/creating-a-custom-archive-page\/\">Archives<\/a> &#8211; these are the built-in content lists in WordPress, which Toolset lets you design and customize<\/li>\n<\/ul><\/div>\n\n\n\n<p>When you design Views and Archive for form entries, set the &#8220;content selection&#8221; to the post-type that you need (for which you created the form) and choose the fields to display.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying individual entries<\/h2>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"360284519b991feb492b582c7d84725f\"><p>To display individual form entries, you should create <a href=\"https:\/\/toolset.com\/de\/course-lesson\/creating-templates-to-display-custom-posts\/\">Content Templates<\/a>. The Content Template starts empty and you can include any field of the post type (coming from the form) that you want to display.<\/p><\/div>\n","protected":false},"author":1,"featured_media":1744191,"template":"","related-lesson":[8409,8429,8427,8411],"class_list":["post-1744115","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-archive-pages","related-lesson-post-forms","related-lesson-post-templates","related-lesson-view"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1744115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1744115\/revisions"}],"predecessor-version":[{"id":1744477,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1744115\/revisions\/1744477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1744191"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1744115"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1744115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}