Meta property short code error
-
Hello Yoast Support,
I manage a website with over 1500 pages where each page includes a dynamic
%%semester%%variable that needs to update every six months. I’ve registered this variable usingwpseo_register_extra_replacementsand it works perfectly in the Yoast SEO title and meta description fields — the%%semester%%tag is successfully parsed and rendered as expected.However, I’ve noticed a problem with the
og:titletag. Instead of rendering the parsed value of%%semester%%, the Open Graph title is pulling the raw post title (which may still include the shortcode or placeholder), before Yoast has a chance to replace it.This means the
og:titleoutput looks like:<meta property="og:title" content="AIOU Assignments Free %%semester%% AIOU Studio 9">Even though the SEO title is rendered correctly.
Could you please explain why the
og:titleis being pulled from the post title directly instead of using the processed SEO title (with variables rendered)? And is there a way to makeog:titlerespect the same dynamic replacements?Thanks,
The page I need help with: [log in to see the link]
The topic ‘Meta property short code error’ is closed to new replies.