Magento 2. How to display products of specific category on home page

In this tutorial, I will show you how to display products of a specific category on a home page.

Step 1: Please go to the Magento 2 admin panel > Product > Categories

Step 2: Open the desired category then find the category ID like below image. Please take note of the category ID value, you will need to use in the next step

Step 3: In Magento 2 admin panel, please go to Content > Elements > Page > Choose desired Homepage

Step 4.Open the content tab and insert the following HTML code

{{block type=”catalog/product_list” category_id=”4″ template=”catalog/product/list.phtml”}}

If you want to display a specific number of column in product listing, you can use the following code:

{{block type=”catalog/product_list” column_count=”4″ category_id=”4″ template=”catalog/product/list.phtml”}}

Step 5. Open Content > Elements > Blocks > Add New Blocks

Step 6. Specify Block name as “catalog/product_list”
allow the Block by choosing the YES/No for “Enable Block”

Alena Dao

“Good marketing makes the company look smart. Great marketing makes the customer feel smart.”

Recent Posts

9 Powerful Magento Extensions to Dramatically Boost Store Performance

With so many options to choose from, finding the right Magento extensions to boost store…

10 hours ago

7 Powerful Customer Loyalty Strategies for Magento Store Owners to Boost Retention and Revenue

Customer loyalty strategies for Magento are critical for store owners aiming to drive long-term revenue…

11 hours ago

6 Biggest Ecommerce Web Design Mistakes That Kill Sales

A great product, plenty of traffic, and no sales can be both stressful and confusing.…

1 day ago

7 Common Mistakes When Sourcing Products from China — And How Magento 2 Store Owners Can Avoid Them

Sourcing products from China can completely transform your business. It gives you access to amazing…

3 days ago

6 Important Use Cases of Generative Engine Optimization (GEO) That Your Business Should Know About

The digital marketing landscape is changing at a rapid pace, and so are the strategies…

4 days ago

Forklift Integration with IoT and Real-Time Location Systems (RTLS): Boost Productivity & Efficiency in 2025

The rise of e-commerce and the growing demand for faster, more accurate deliveries have rapidly…

4 days ago