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

Smart AI Tools That Are Transforming How Developers Handle Documentation

AI tools are transforming how developers handle documentation and every developer knows the feeling. You're…

5 days ago

Designing WordPress Themes Successfully for Scalable Reuse Across Multiple Client Projects

Designing a WordPress theme that works for one project is straightforward enough. The complications begin…

6 days ago

7 Best Tools for Creating YouTube Videos Without Showing Your Face

The faceless YouTube channel trend has exploded in recent years. Creators are building massive audiences…

1 week ago

A Developer’s Guide to Ecommerce Development for Profitable Stores in Any Product Niche

The ecommerce boom isn't slowing down anytime soon. More businesses are moving online, and they…

1 week ago

Automation Tools for Developers in 2026: The Ultimate List for Smarter, Faster Development

The pace in the software development landscape has never been faster. The world, in turn,…

2 weeks ago

How to Manage Development Teams in a Growing Magento Agency

Growing Magento development agencies face increasing operational and technical complexities as teams expand rapidly. Multiple…

2 weeks ago