I'm trying to show the metadata that yoast shows without using the get_header (); or wp_head(). For example:
<meta property="og:locale" content="es_ES" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Imagen : infografía.........." />
<meta property="og:description" content="infografía....." />
<meta property="og:url" content="https://....." />
Tried this but it doesn't work for me:
<? php echo get_post_meta ($ post-> ID, '_yoast_wpseo_metadesc', true); ?>