WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Facebook OG tags changed the Post titles (5 posts)

  1. TrishaM
    Member
    Posted 7 months ago #

    I just implemented the social meta to add the Facebook Open Graph tags and now my Post Titles are not following the format specified in the AIO general settings, which should be:

    %post_title% | %blog_title%

    It was working fine before adding the Open Graph info, now all the post titles are rewritten to just their URL… preceded by the site URL…..aaargh!

    How can I have both the Open Graph tags and the pretty Post Titles I had before?

    None of my AIO general settings changed, nor did my WordPress settings…..I re-saved my Settings>Permalinks (even though nothing had changed) to be sure it wasn't just confused……

    Any suggestions?

    http://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Hi TrishaM,

    The Social Meta module shouldn't change your post titles at all. What is your site? Can you try deactivating the module and verifying for me that your title tag changes?

  3. TrishaM
    Member
    Posted 7 months ago #

    the site is http://www.scotchmanpeaks.org/

    I deactivated the Social Meta feature, but the titles are still messed up and showing as ugly permalinks instead of pretty titles - I also tried deactivating and reactivating the AIO plugin, but it didn't help. The Post and Page titles were perfect until I activated the Social Meta, and that's when they changed……there were no other changes made nor any other plugins added in the single minute or two between activating the Social Meta, tweaking a couple of it's settings to include the OG tags we need, and refreshing pages…..

  4. TrishaM
    Member
    Posted 7 months ago #

    Nevermind - I *think* I figured it out…….I was not using wp_title() (and never have), but now it seems necessary……I'll reactivate Social Meta and do some more testing and post back shortly.

    UPDATE: Yep, that fixed it……I can now use Social Meta and still have the titles look the way we need them to……so it appears that it's necessary to use wp_title() with this version of AIO……it's not a problem, it's simply that in the past I've always replaced wp_title() in the header.php with a hard-coded <title> tag to reduce PHP calls and help optimize the site (for anything that will never change, such as doctype, language, encoding, feed links,etc. there is no need to do a PHP query on every page load)……that's always still worked fine with older versions of AIO, which still re-wrote titles as needed.

    SO no worries, now that I know I have to use wp_title() I will do so.

  5. Peter Baylies
    Member
    Plugin Author

    Posted 7 months ago #

    Hi TrishaM,

    It is the recommended best practice to use wp_title() for your title tags, yes; All in One SEO Pack has an option for this under Performance, if you Disable "Force Rewrites" then it will use wp_title() to output the title instead. This is useful on sites where there are conflicts with PHP output buffering, but does require a theme that uses wp_title() properly to work.

Reply

You must log in to post.

About this Plugin

About this Topic