How can I call a widget that displays product from a specific category in a phtml file?
Currently I can only display "all_products" in my phtml file like that:
echo $this->getLayout()->createBlock("Magento\Catalog\Block\Product\Widget\NewWidget")- >setDisplayType("all_products")->setProductsCount("5")- >setTemplate("product/widget/new/content/new_grid.phtml")->toHtml();
How to do this with products from specific category and not all products?