title: Displaying Meta Description On A Page
body: <p>I'm using Wordpress Yoast Seo plugin to generate automatic meta and description tags of all posts. I need to display meta description generated by Yoast seo on the post page. I found this code on the Internet.</p>
  
  <pre><code>&lt;?php echo get_post_meta($post-&gt;ID, '_yoast_wpseo_metadesc', true); ?&gt;
  </code></pre>
  
  <p>So wherever I place this php code, it displays the meta description of the post.</p>
  
  <p>Now the problem is most of the posts in my blog don't have meta description in their custom field on the post editor. I use auto meta tags using the plugin by going to Seo > Title Settings > Meta Description Template. I went through the editor of the plugin and found wpseo_metadesc_template in it . So I tried this code.</p>
  
  <pre><code>&lt;?php echo get_post_meta($post-&gt;ID, 'wpseo_metadesc_template', true); ?&gt;
  </code></pre>
  
  <p>But it displays nothing. Someone please help me out on this.</p>