WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Cecily
    Member
    Posted 1 year 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:
    whospromotingyou.com/shop/custom-actor-postcard/

    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="">

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

  2. Cecily
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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. jmlapam
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    thanks !!! Missed that

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic