Yoast SEO
[Plugin: WordPress SEO by Yoast] Wrong og:title for posts in 1.2.3 (8 posts)

  1. Chris
    Posted 3 years ago #

    WordPress version: 3.3.2
    WordPress SEO version: 1.2.3

    I upgraded to WordPress SEO 1.2.3 and noticed that the og:title for posts is displaying as my homepage title, and not the post title. Is this a known issue?


  2. Chris
    Posted 3 years ago #

    My post title template was blank. I was able to correct this by entering:
    %%title%% - %%sitename%%

    Now the correct og:title is displaying on my posts in 1.2.3.

  3. UsagiYojimbo
    Posted 3 years ago #

    I use to have the same problem and correct it this way : http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-issues-with-ogtitle-in-cpt

    But your way is far more better. I haven't looked at the gui, which has changed :/

  4. Thomas McMahon
    Posted 3 years ago #

    Thanks everyone for finding a solution.

    Yoast, if you can fix this automatically that'd be great. Seems like if it's blank, it should grab the title tag.

  5. Chris
    Posted 3 years ago #

    Yeah, I just found out the %%title%% - %%sitename%% workaround isn't ideal, because now my site's name displays in the og:title tag. Before 1.2.3 my post title template was blank, and the og:title worked properly. Something must have changed in 1.2.3 and caused a bug. Hopefully Joost can comment or fix it in the next version.

  6. Marek Sobol
    Posted 3 years ago #

    I think it is obvious bug, and Joost will fix it. BTW: it seems to be good idea to add template for og:title to “Titles & Metas” tab. og:title usually differs from page title tag (og:title should be just plain post title, page title contain at least site name also, but may contain other things)

  7. Chris
    Posted 3 years ago #

    It looks like 1.2.4 fixed this issue, but now the site name is included in the og:title, instead of just the post title.

  8. Chris
    Posted 2 years ago #

    Anyone know how I can exclude the site name in the og:title? Before 1.2.4 only the post title was displayed, but now it includes the site name as well.

    I want the post title to be "This is a post - Example.com" but the og:title to be "This is a post". Is this possible?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic