Page & Product Conditionals
-
Hi
In my sidebar I want to show some custom code but only on the home (news) page, single news posts and archives but NOT on any woocommerce single product pages.
I’m using this snippet but the code is still appearing on the woocommerce single product pages. What have I done wrong?!
<?php if ( is_home() || is_single() || is_archive() || !is_product() ) : ?>
Thanks in advance
- The topic ‘Page & Product Conditionals’ is closed to new replies.