WordPress.org

Ready to get started?Download WordPress

Forums

Flare
Flares content is displaying in og:description (10 posts)

  1. Angela Steph
    Member
    Posted 1 year ago #

    Hi,

    I recently installed the flare plugin and it seems to have overwritten my og:description.

    Here is an exact example of one of my posts where this has occurred:

    <meta property='og:description' content='20 Flares Twitter 4 Tweet Facebook 15 Pin It Share 1 LinkedIn 0 Google+ 0 StumbleUpon 0 20 Flares × 20 Flares Twitter 4 Tweet Facebook 15 Pin It Share 1 LinkedIn 0 Google+ 0 StumbleUpon 0 20 Flares ×'/>

    It luckily isn't showing up when sharing articles on social platforms, but would be nice to have a solution to this.

    http://wordpress.org/extend/plugins/flare/

  2. dtelepathy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Chris - what method are you using to populate the og:description?

  3. George Zhu
    Member
    Posted 1 year ago #

    I'm having the same issues - and I'm using Yoast SEO plugin.

  4. dtelepathy
    Member
    Plugin Author

    Posted 1 year ago #

    Hi George - this looks like a get_the_excerpt() issue we have fixed in this upcoming release.

    If you want you can add in a line of code to the the_content() hooked function in the flare.php file.

    Immediately after the global $post;

    function the_content( $content ) {
        global $post;
        .
        .
        .
        .
        return $content;
    }

    Add in this line:

    if( in_array( 'get_the_excerpt', $GLOBALS['wp_current_filter'] ) ) return $content;

    So it will look like this:

    function the_content( $content ) {
        global $post;
    
        if( in_array( 'get_the_excerpt', $GLOBALS['wp_current_filter'] ) ) return $content;
    
        // If Flare shouldn't be here, just return the $content
        if( !$this->_include_flare() ) {
            return $content;
        }
        .
        .
        .
        .
        return $content;
    }
  5. Angela Steph
    Member
    Posted 1 year ago #

    Hi dtelepathy,

    I started using the Facebook Revised Open Graph Meta Tag plugin and it seems to have fixed the display of Flare text in the meta, but I wouldn't recommend this is a solution.

    I am going to try getting Yoast to work again but I think it was causing me issues as well. I am guessing its a conflict of plugins or even the plugins and my theme because Yoast worked perfectly before..

  6. Angela Steph
    Member
    Posted 1 year ago #

    I made your fix and switched back to Yoast plugin and all is working well now.

  7. mrryanconnors
    Member
    Posted 12 months ago #

    I'm having the same issue to with my blog post like http://www.mrryanconnors.com/7-things-never-ever-to-do-on-twitter/. I made the changes to the code mentioned above to no avail. Any other ideas on a solution or timeline for a patch?

  8. DannyDover
    Member
    Posted 12 months ago #

    I have the latest version of Flare (1.2.4) and am still experiencing this problem :-/ I manually checked flare.php and it appears that the "fix" is in there. Unfortunately I am still seeing the problem.

    Example: http://www.lifelisted.com/blog/my-ted-talk-the-most-important-question/

    Help would be much appreciated! :-)

  9. DannyDover
    Member
    Posted 11 months ago #

    I manually edited the plugin to display the flare info at the end of the content rather then at the beginning (thus making it not affect the meta description, og:description and twitter:description). My hack isn't ideal and I'd love to see a real fix instead :-)

  10. fangu
    Member
    Posted 11 months ago #

    DannyDover, I'd like to see where in flare.php you made your edits, and how. I'm having the same problem with Flare outputting info in excerpts, which we're using to describe news articles on our site. The first solution was to put in an $result = substr($result, 28); in one of our custom filters, but since the string input by Flare varies, it's no permanent solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic