Hello! Recenly i’ve encountered the following bug.
SSSB uses get_title() function when displaying meta property=”og:title” on some site pages.
But this function not always returns site title as a pure string. It allows other plugins to modify the title with filter. And some of them do it. For ex, one of my plugins added HTML markup to the title.
In this case, meta tag looked like this:
<meta property="og:title" content="<span id="someid">Site title<span>"/>
And it breaked the page markup.
So i’d think that get_title() isn’t fit, while get_bloginfo(‘name’) would do the trick.
- The topic ‘Post title in meta property="og:title"’ is closed to new replies.