Magento 2. How to display products of specific category on home page
View more Magento 2 Themes
![Name: Magento-2-1.jpg
Views: 38
Size: 64.1 KB](https://magentoexpertforum.com/attachment.php?attachmentid=9233&d=1491212234)
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
![Name: 1.jpg
Views: 36
Size: 47.7 KB](https://magentoexpertforum.com/attachment.php?attachmentid=9229&d=1491212109)
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
![Name: 2.jpg
Views: 36
Size: 48.4 KB](https://magentoexpertforum.com/attachment.php?attachmentid=9230&d=1491212142)
Step 3: In Magento 2 admin panel, please go to Content > Elements > Page > Choose desired Homepage
![Name: 3.jpg
Views: 36
Size: 60.6 KB](https://magentoexpertforum.com/attachment.php?attachmentid=9231&d=1491212169)
Step 4.Open the content tab and insert the following HTML code
PHP 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:
PHP 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
![Name: 4.jpg
Views: 36
Size: 42.4 KB](https://magentoexpertforum.com/attachment.php?attachmentid=9232&d=1491212218)
View more threads in the same category:
Bookmarks