Blog:title issue with my buddypress and facebook function
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.
You must be logged in to reply to this topic.