Skip to:
Content
Pages
Categories
Search
Top
Bottom

Blog:title issue with my buddypress and facebook function

  • Avatar of Tommy White
    Tommy White
    Participant

    @twdesigns

    I am running into a odd issue tonight. I have a function that inserts facebook meta tags for me. Everything works fine on the site until it gets to the buddypress members page where it starts inserting the users name like, John Doe”/>, at the top of the page. I narrowed it down to my function which is basic and states
    echo '<meta property="og:title" content="' . get_the_title() . '"/>';
    Then I looked at the title for the page and noticed the H1 Title Tag includes a LINK inserted by buddypress for the member. I also have the same issue on Group pages where it’s inserting “create a group” because there is also a LINK in the H1 Title Tag. This is causing my og:title to break as it’s trying to insert a RAW formatted link into the meta tag. Is this how it’s intended to be or a coding error. Where can I change this so that it appears outside the H1 tag? Also I checked other buddypress sites and they all appear the same way.

Viewing 1 replies (of 1 total)
  • Avatar of Kuriso
    Kuriso
    Participant

    @kuriso

    I have a similar isssue. On the groups page there is a meta tag getting messed up.

    At the top abc.com/groups/ it printing extra text: “Create a Group”/>”
    View Source shows this:
    <meta property=”og:title” content=”Groups Create a Group“/>

    At the top abc.com/groups/my-group/ it printing extra text: “My Group”/>”
    View Source shows this:
    <meta property=”og:title” content=”My Group“/>

    I get these same problems on all the Members pages as well. Is there a way to disable the meta tags without changing the plugins source code?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.