/etc/hosts
/Applications/MAMP/conf/apache/httpd.conf
/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
Replace woo
with the product category slug of the category you need to exclude. Multiple categories can be excluded like this array( 'woo1', 'woo2', 'woo3' )
.
To exclude from another page, replace is_shop()
with is_page( 'YOUR_PAGE_SLUG' )
and enter your page slug in place of YOUR_PAGE_SLUG
.