Buy me a coffee

How to Show Specific Category on Shop Page

Today, I read a question

“I’m using WC (free version) for my shop with GP Premium. Shop page is set as my home page. I want the shop page to show only one category. Best way I found to do this so far is using WC shortcode. The problem is I lose the functionality of the product sorting. Anyone have an idea to get this functioning without having to buy the premium WC version?”

How to Show Specific Category on WooCommerce Shop Page?

Just follow these steps.

1. Install and Activate Code Snippets Plugin

code-snippets-install1-min

2. Add New Snippet

code-snippets-add-new-min

3. Paste these code

Copy these code

and paste

show-specific-category-on-shop-page-min

and click Only run on site front-end

4. Save Changes and Activate

code-snippets-save-changes-activate-min

Snippet: BusinessBloomer.com (Fixed a bit of original snippet)

Leave a Comment

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to: https://beaverhero.com/squarespace-how-to/
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder