Post Types – Posts, Pages, Blog, Archives

This condition lets you display custom sidebars on all or individual post types and on post type archives – including the Blog page or Shop page.


Custom Post Types are automatically supported as conditions.


Example – Individual Products

Display sidebar only if the visited webpage is Product 1 or Product 2.

Product Post Type Condition


Good to know: If Product was a hierarchical type, like Page, checking “Automatically add new children of a selected ancestor” would mean that any new created product with Product 1 or Product 2 as parent would be added to the condition as well.


Example – Blog or Post Type Archive

Display the sidebar only if the visited webpage is the Blog page (Posts archive)


Good to know: This approach will work for all pages set as post type archives, for example the WooCommerce Shop page.


Was this article helpful to you?