Getting meta_desc in my own theme?
-
Hello. No search on Yoast website yields any insight. I’m trying to get the
meta description
I write per article in the “snippet” into my theme’s header. I won’t be usingwp_head()
which contains all sorts of gunk and removing it is more painful than any value it provides.For the description fields in the header including OG, Twitter, FB, etc, I’d like to use current page’s “meta desc” instead of creating yet another custom field just to replicate this.
Is there any way to reference what I’ve already specified in Yoast? I know Yoast relies on wp_head() to do its insertions, but I need the opposite: something like
get_yoast_meta_desc()
for example to put into my own theme.Many thanks for any pointers!
- The topic ‘Getting meta_desc in my own theme?’ is closed to new replies.