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

12 Best Custom Software Development Companies for Scalable EdTech Platforms in 2026

Compare 12 custom software development companies with proven EdTech delivery, from LMS migrations to AI-powered…

3 weeks ago

7 Best Microsoft Dynamics 365 Implementation Partners for Manufacturing

Factories everywhere are running a tighter game. Post-2023 supply-chain whiplash, relentless cost pressure, and a…

4 months ago

Ecommerce Web Development Approaches: How to Pick the Right One

Picture this: a business rushes into a platform decision based on what a competitor was…

4 months ago

How AI-First Engineering Is Driving Incredible Innovation in Custom Software Development

The software development landscape has changed at an accelerated rate in the last ten years,…

4 months ago

How Website Architecture and Page Speed Boost eCommerce Conversion Rates

Imagine walking into a store where the aisles are a maze, the lighting is dim,…

4 months ago

Why Product Videos Are Essential for a Better Online Shopping Experience

Product videos have become one of the most effective tools for helping online shoppers make…

4 months ago