Today we talk about how to in Magento 2 call a phtml file in static block. Calling a phtml file is no different as compared to Magento 1 calling. But if you are calling it in cms block you have to use a class instead of type.
Calling a phtml file on the static block. Just add class and template path.
My current file location for the module is.
app/code/QaisarSatti/HelloWorld/Block/HelloWorld/view/frontend/templates/helloworld.phtml
My current phtml location for the theme is.
app/design/frontend/QaisarSatti/helloworld/Magneto_Theme/templates/helloworld.phtml
If you want to add phtml with general magento class. Use following code.