How to get snippet for use in page template
-
Hi, I’m building my first custom WordPress theme and would like to make it Yoast-friendly. I have found out that I can use
echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true);
to get the user’s input from the ‘snippet’ field.My question is: How can I do the same with the ‘focus keyphrase’? How can I implement it in my theme?
Specifically, I would like to know what code I need to use in my header.php file to ‘get’ the keyphrase that the user has entered.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get snippet for use in page template’ is closed to new replies.