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

What Modern Retailers Need in a Powerful Returns Management Platform

Returns complexity has exploded. You're managing omnichannel returns, multiple warehouse locations, and seasonal spikes. Managing…

6 hours ago

How to Improve User Experience with Effective Mobile App Testing?

Mobile applications have already been our go-to savior for streamlining our daily lives. So, in…

3 days ago

6 Best AI Pitch Deck Creators for Ecommerce Startups

AI pitch deck creators for e-commerce startups are transforming how founders prepare investor presentations. Building…

5 days ago

Top 5 Future Mobile App Development Trends to Elevate Your Business

Do you want to develop a mobile app for your business, but don’t know what…

1 week ago

Vanta vs Drata: A Critical Practical Guide to Choosing Compliance Automation

Vanta vs Drata — According to Cybersecurity Ventures, global cybercrime is set to cost $10.5…

1 week ago

Essential Salesforce Cybersecurity Threats 2025: Critical Risks Every Admin Must Prepare For

Salesforce cybersecurity threats 2025 are becoming more advanced as cybercriminals increasingly target CRM platforms that…

1 week ago