Restricted category in Woocommerce [closed]

The function that solves it should do the following : Loops through each product in the category For each item, retrieve the list of categories the product is in. If there is only one category and it’s the ‘restricted’ category, then the product is excluded from the query. Here’s an example : function exclude_category_archive_products( $q … Read more

how to create a page that shows all of multiple category posts on a single page

I was seeing nothing in between the header&footer because I did not actually display the posts in my custom query, which can be done using template tags like the_title() and the_content(). More details here: https://developer.wordpress.org/themes/basics/the-loop/ But then I found out that I could simply use the cat parameter in the URL to view posts in … Read more