Slick Social Share Buttons
[resolved] Post title in meta property="og:title" (1 post)

  1. Ahaenor
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slick Social Share Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.