WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Chris
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Chris
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 1 year 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

About this Topic