The function views_embed_view basically takes two argument in which 1st is view name and is required, 2nd is display ID to render which is optional. You can also pass the 3rd argument to provide the argument to your views.
- print views_embed_view('VIEWS_MACHINE_NAME', 'DISPLAY_ID', $view_arg);
Note: The above function views_embed_view() will not print the title of the view. To print the title you will need to do what this function does and print the title separately. Here is sample code:
- $view = views_get_view('VIEWS_MACHINE_NAME');
- print $view->get_title();
- print $view->preview('DISPLAY_ID');