{"id":1622285,"date":"2020-05-13T11:42:56","date_gmt":"2020-05-13T11:42:56","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1622285"},"modified":"2021-05-18T14:36:29","modified_gmt":"2021-05-18T14:36:29","slug":"creating-a-custom-archive-page","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/creating-a-custom-archive-page\/","title":{"rendered":"Creating a Custom Archive Page"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">On this page<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#steps-for-creating-a-custom-archive\">Steps for Creating a Custom Archive<\/a><\/li><li><a href=\"#display-dynamic-sources-using-wordpress-core-and-popular-block-plugins\">Display dynamic sources using WordPress core and popular block plugins<\/a><\/li><li><a href=\"#display-dynamic-sources-inside-all-text-blocks\">Display Dynamic Sources inside all text blocks<\/a><\/li><li><a href=\"#how-to-style-an-archive-page\">How to style an archive page<\/a><\/li><li><a href=\"#add-pagination-to-the-archive\">Add pagination to the archive<\/a><\/li><li><a href=\"#add-content-before-or-after-the-archive-loop\">Add content before or after the archive loop<\/a><\/li><li><a href=\"#change-the-loop-style-of-an-archive\">Change the loop style of an archive<\/a><\/li><li><a href=\"#add-front-end-sorting-to-an-archive\">Add front-end sorting to an archive<\/a><\/li><li><a href=\"#change-the-layout-of-an-archive-page\">Change the layout of an archive page<\/a><\/li><li><a href=\"#add-a-custom-search-to-an-archive\">Add a custom search to an archive<\/a><\/li><li><a href=\"#assign-archives-to-specific-taxonomy-terms\">Assign archives to specific taxonomy terms<\/a><\/li><li><a href=\"#applying-the-same-design-to-taxonomy-archives\">Applying the same design to taxonomy archives<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Steps for Creating a Custom Archive<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to&nbsp;<strong>Toolset&nbsp;<\/strong>\u2192&nbsp;<strong>Dashboard&nbsp;<\/strong>and click the&nbsp;<strong>Create Archive<\/strong> button in the row of the post type you want to design an archive for.<\/li><li>Give a name to your archive in the pop-up dialog that appears.<\/li><li>Use the archive-creation wizard to set the basic options for your archive like pagination, search, and layout.<\/li><li>Use the WordPress Block Editor to design your <a href=\"https:\/\/toolset.com\/glossary\/archive\/\">archive<\/a>.&nbsp;<\/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<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"09df93215e2515fe782ef1f39dd79be3\"><p><span>New archives created using Toolset have default settings for pagination, ordering, and more. You can change these settings at any time.<\/span><\/p><\/div>\n\n\n\n<p>In the right sidebar, click the <strong>WordPress Archive <\/strong>tab. There are sections for all the main settings in your archive.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-dynamic aligncenter\" data-toolset-blocks-image=\"f460adfb4c6fc82f2ac10170de4b2e98\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options.png\"><img decoding=\"async\" width=\"1380\" height=\"701\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options.png\" alt=\"\" class=\"wp-image-2020477\" srcset=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options.png 1380w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options-300x152.png 300w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options-1024x520.png 1024w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options-150x76.png 150w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options-768x390.png 768w, https:\/\/toolset.com\/wp-content\/uploads\/2021\/04\/toolset-wordpress-archive-general-options-805x409.png 805w\" sizes=\"auto, (max-width: 1380px) 100vw, 1380px\" \/><\/a><div class=\"tb-image-caption\"><figcaption>Options for changing the main archive settings<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>You can also add advanced features like front-end sorting, custom search, and filters the list of posts.<\/p>\n\n\n\n<p>For further instructions, see below.<\/p>\n","protected":false},"author":4341,"featured_media":1625911,"template":"","related-lesson":[8409],"class_list":["post-1622285","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-archive-pages"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1622285","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\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1622285\/revisions"}],"predecessor-version":[{"id":2023467,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1622285\/revisions\/2023467"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1625911"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1622285"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1622285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}