Get Yoast SEO WordPress Title

On Page Template:

 

On Archive:

 

On Term SEO titles:

 

On Tags:

 

  • jabbamonkey

    I customized my YOAST title on my page to be “%%title%% %%sep%% Some Text I had in the Title %%sep%% %%sitename%%” … so it shows up as “Page Name | Some Text I had in the Title | My Site Name” in the page title… but when I use the following inside my page…

    echo get_post_meta(get_the_ID(), ‘_yoast_wpseo_title’, true);
    … it spits out…
    %%title%% %%sep%% Some Text I had in the Title %%sep%% %%sitename%%
    How do I get it to spit out the actual title (where %%title%% changes to “Page Name”, etc.)???