WordPress.org

Ready to get started?Download WordPress

Forums

JM Twitter Cards
[resolved] twitter card meta is loading before SEO (8 posts)

  1. Cecily
    Member
    Posted 1 year ago #

    Hi there the JM Twitter Card info is loading before the All in SEO information, causing an issue for me because the twitter card meta is loading before the all-in-one-seo meta.

    http://wordpress.org/extend/plugins/jm-twitter-cards/

  2. tweetpressfr
    Member
    Plugin Author

    Posted 1 year ago #

    Hi cecilywiggins, can you be more precise? I do not really understand what's the problem here.

  3. Cecily
    Member
    Posted 1 year ago #

    HI there. I am using All-in-SEO along with JM Twitter Cards. The twitter card plugin in loads before the SEO meta data like so...

    <!-- JM Twitter Cards by Julien Maury 3.1.4 -->
    <meta property="twitter:card" content="summary"/>
    <meta property="twitter:creator" content="@twitter"/>
    <meta property="twitter:site" content="@twitter"/>
    <meta property="twitter:domain" content="http://www.website.com"/>
    <meta property="twitter:title" content="Research yourself first"/>
    <meta property="twitter:description" content="x"/>
    <meta property="twitter:image" content="x"/>
    <!-- /JM Twitter Cards -->

    <!-- All in One SEO Pack 2.0 by Michael Torbert of Semper Fi Web Design[148,234] -->
    <link rel="author" href="https://plus.google.com/x" />
    <meta name="description" content="x" />

    <meta name="keywords" content="x" />

    <link rel="canonical" href="x" />
    <!-- /all in one seo pack -->

  4. tweetpressfr
    Member
    Plugin Author

    Posted 1 year ago #

    I do not know why it's annoying you. I guess it's for SEO reasons. Anyway, you're probably not the only one in this case. I'll do some reasearch to see if it's worth updating.

    In the meantime, you can change line 278 :
    add_action( 'wp_head', 'add_twitter_card_info');
    to this :
    add_action( 'wp_head', 'add_twitter_card_info',99);

    With this, Twitter meta should load after.

  5. Cecily
    Member
    Posted 1 year ago #

    Hi there. Thank you for looking into this I will try your suggestion. I find when I use facebook's debugger it looks for meta data and if it interprets the twitter card data before the regular meta data it doesn't recognize it. My clients intrepreted that as something being wrong....either way when I code I put the most important stuff at the top so naturally I would want the all-in-one seo data to display first then the open graph and twittercard data to follow.

  6. Cecily
    Member
    Posted 1 year ago #

    Btw...I'll post open graphs exact response when I get to a computer....

  7. tweetpressfr
    Member
    Plugin Author

    Posted 1 year ago #

    oK hope this will solve your problem ^^

  8. tweetpressfr
    Member
    Plugin Author

    Posted 1 year ago #

    3.1.5 do the trick

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic