JM Twitter Cards
[resolved] Product Card Not Validating Properly (6 posts)

  1. Cecily
    Posted 3 years ago #

    Hi again,

    Having trouble getting the product cards to validate.The data is showing up on the page but not being picked up by the validator...there is a slight difference in the code out on the twitter card, I wonder if this is an issue?

    For instance the tool displays:
    <meta name="twitter:data:1" content="$70">

    and twitter prefers: <meta name="twitter:data1" content="">

    Is this the problem?

    My product card data I am testing here is located here:

    and twitter is claiming not see any data for these fields:

    <meta name="twitter:data1" content="">
    <meta name="twitter:data2" content="">
    <meta name="twitter:label1" content="">
    <meta name="twitter:label2" content="">


  2. Cecily
    Posted 3 years ago #

    I guess I could have just asked if you think the colon in between the "data" or "label" and the number 1 & 2 are the issue.

  3. Cecily
    Posted 3 years ago #

    Ok, I removed the colons in the code and the product card verified beautifully. Nice I see the SEO comes before the twitter code too.

  4. tweetpressfr
    Plugin Author

    Posted 3 years ago #

    Hi Cecily, this feature is quite experimental even if I made it according to the documentation. Any report is much appreciated, thanks ;)

  5. Cecily
    Posted 3 years ago #

    No problem! Saw something else on line 260

    $cardLabel1 = get_post_meta(get_the_ID(),'cardLabel2',true);

    ...which resulted in a duplicate of cardLabel2 for both labels. I caught something else as well. But I fixed it and kept it moving. I will message you back when I find that error, but GREAT plugin I amglad I found it.

  6. tweetpressfr
    Plugin Author

    Posted 3 years ago #

    thanks !!! Missed that

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JM Twitter Cards
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic