{"id":4221,"date":"2021-08-06T14:37:06","date_gmt":"2021-08-06T06:37:06","guid":{"rendered":"https:\/\/conditionalblocks.com\/docs\/conditions\/archieve\/"},"modified":"2025-05-01T14:22:10","modified_gmt":"2025-05-01T06:22:10","slug":"archive","status":"publish","type":"docs","link":"https:\/\/conditionalblocks.com\/docs\/post\/archive\/","title":{"rendered":"Archive"},"content":{"rendered":"\n<p>WordPress Archives are pages that are created to display multiple posts from different sources on your website.  <\/p>\n\n\n\n<p>Archive pages can include category, tag, author, date, custom post type, and custom taxonomy-based archives.<\/p>\n\n\n\n<p>You&#8217;d already be familiar with a &#8220;Blog&#8221; page that contains all the blog posts.  That is called an Archive. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to use toggle the visibility of block on WordPress archives<\/h3>\n\n\n\n<p>In the below screenshot you&#8217;ll see the Archive Condition being used to show a specific Group Block only for a WooCommerce product category called &#8220;Shirts&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1370\" height=\"1096\" src=\"https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/archieve-settings-for-conditional-blocks.png\" alt=\"Configuring the Archive Condition using Block Widgets\" class=\"wp-image-5080\" srcset=\"https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/archieve-settings-for-conditional-blocks.png 1370w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/archieve-settings-for-conditional-blocks-300x240.png 300w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/archieve-settings-for-conditional-blocks-1024x819.png 1024w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/archieve-settings-for-conditional-blocks-768x614.png 768w\" sizes=\"(max-width: 1370px) 100vw, 1370px\" \/><figcaption>Configuring the Archive Condition using Block Widgets<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"748\" src=\"https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/condtional-blocks-wordpress-widget-archive-1-1024x748.png\" alt=\"Viewing the dynamic block widget.\" class=\"wp-image-5082\" srcset=\"https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/condtional-blocks-wordpress-widget-archive-1-1024x748.png 1024w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/condtional-blocks-wordpress-widget-archive-1-300x219.png 300w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/condtional-blocks-wordpress-widget-archive-1-768x561.png 768w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2022\/01\/condtional-blocks-wordpress-widget-archive-1.png 1483w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Viewing the dynamic block widget.<\/figcaption><\/figure>\n\n\n\n<p><strong>TIP<\/strong>: The Archive condition works with any Post Type, Taxonomy, and Terms within WordPress.<\/p>\n","protected":false},"featured_media":0,"parent":8490,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-4221","docs","type-docs","status-publish","hentry"],"blocksy_meta":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"docspress_archive":false,"1536x1536":false,"2048x2048":false,"sl-small":false,"sl-large":false},"uagb_author_info":{"display_name":"Morgan","author_link":"https:\/\/conditionalblocks.com\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"WordPress Archives are pages that are created to display multiple posts from different sources on your website. Archive pages can include category, tag, author, date, custom post type, and custom taxonomy-based archives. You&#8217;d already be familiar with a &#8220;Blog&#8221; page that contains all the blog posts. That is called an Archive. How to use toggle&hellip;","_links":{"self":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/4221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/comments?post=4221"}],"version-history":[{"count":2,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/4221\/revisions"}],"predecessor-version":[{"id":11022,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/4221\/revisions\/11022"}],"up":[{"embeddable":true,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/8490"}],"wp:attachment":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/media?parent=4221"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs_category?post=4221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}