{"id":1622283,"date":"2020-05-13T14:14:41","date_gmt":"2020-05-13T14:14:41","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1622283"},"modified":"2021-05-24T07:26:23","modified_gmt":"2021-05-24T07:26:23","slug":"creating-a-view","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/es\/course-lesson\/creating-a-view\/","title":{"rendered":"Creating a View"},"content":{"rendered":"\n<p>In Toolset, we call such a list of posts a&nbsp;<a href=\"https:\/\/toolset.com\/es\/glossary\/view\/\">View<\/a>.<\/p>\n\n\n\n<p>A View allows you to easily <a href=\"https:\/\/toolset.com\/es\/glossary\/wp_query\/\">create a query<\/a> and select exactly which posts to get from the database. Then, you design how to display that list of posts on the front-end.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-steps\">Steps for creating a View<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>To start, edit or create a page, post or a template and insert the&nbsp;<strong>View&nbsp;<\/strong>block.<\/li><li>Use the WordPress Block Editor to design your View.<\/li><li>Use Toolset blocks to add&nbsp;<a href=\"https:\/\/toolset.com\/glossary\/dynamic-fields\/\">dynamic fields<\/a>&nbsp;to the template.<\/li><\/ol>\n\n\n\n<p>Now, you can enhance your View with advanced features. For example, you can add pagination and infinite scrolling, front-end sorting, filter the list, add a custom search, or display View items on a map.<\/p>\n\n\n\n<p>For instructions, see below.<\/p>\n","protected":false},"author":4341,"featured_media":1625853,"template":"","related-lesson":[8411],"class_list":["post-1622283","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-view"],"_links":{"self":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/1622283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/1622283\/revisions"}],"predecessor-version":[{"id":1792835,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/course-lesson\/1622283\/revisions\/1792835"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media\/1625853"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/media?parent=1622283"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/es\/wp-json\/wp\/v2\/related-lesson?post=1622283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}