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

15+ Must-have Magento 2 Free Extensions To Supercharge Your Store In 2025 | Latest updates

Magento 2 is an incredibly flexible and powerful eCommerce platform that can be tailored to…

3 days ago

What To Consider While Using Magento 2.0 For Your Streaming App?

When it comes to e-Commerce platforms, undoubtedly Magento 2.0 grabs the spotlight. Magento might not…

4 days ago

Black Friday 2024: Hot Deals Collection For Magento 2

Black Friday and Cyber Monday – BFCM 2024 are nearly around the corner, and it’s…

5 days ago

Landofcoder BFCM 2024: Biggest Sale Of The Year – 30% OFF All Magento 2 Extensions

The holiday shopping season is here, and there’s no better time to supercharge your Magento…

7 days ago

Top 10 Progressive Web App Development Companies To Elevate Your Business

In today’s digital landscape, the rapid evolution of advanced web applications, particularly Progressive Web Apps…

2 weeks ago

Why Your Retail Business Needs Big Data eCommerce In 2025?

As eCommerce booms, big data eCommerce will be all about providing insight into how to…

2 weeks ago