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
.
Enter the id of the category you want to exclude in place of 30
. Multiple categories can be excluded like this array( '30', '31', '32' )
.