How do I embed views in node template Please how can I embed a view in a node template like node--blog--full.html.twig.

I have configured an about-the-author views to be embedded in full mode of blog content type using views-embed-view(), but it doesn't work. I have enabled the "Allow embedded displays" from views settings and followed a few tips online, but none seems to work. 


Is there a better way to embed views in D8 node template? 
How can I use views-embed-view correctly in D8?


Many thanks
Just to be sure, are you calling views-embed-view(), or views_embed_view() (Note the dashes/underscores). The second version (views_embed_view() is the correct one).

Also, how do you call the function? Which parameters do you pass?

As per this page, the correct way of embedding a view is 1 of the following ways.

Option 1:

// Get the embeded view and render it.
drupal_render(views_embed_view('VIEW_NAME', 'DISPLAY_ID'));


Option 2

// Get the embeded view and render it.
\Drupal::service('renderer')-&gt;render(views_embed_view('VIEW_NAME', 'DISPLAY_ID'));


In this example you will have to replace VIEW_NAME with the machine name of your view, and the DISPLAY_ID should be replaced with the ID of the display you want to use (Or can be omitted to use the default display).

Also note that the second option is the better one, since the drupal_render function is deprecated, and will be removed before Drupal 9.0.0 (More info).