json code warning

Home Forums Calendar Products Events Calendar PRO json code warning

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1059610
    Stephen
    Participant

    Hello,

    We’ve recently installed & configure the EventsCalenderPro version on our development server. After added some demo events, we’ve found some warning on the automated ld+json code on those demo purpose event page.
    We’ve tested the ld+json code on https://developers.google.com/structured-data/testing-tool/
    can anyone tell us why this warning is & how to remove that error.

    Please see the attached image for warning details.
    For screenshot : http://imgur.com/cZEYgC8

    #1059978
    Brian
    Member

    Hi,

    Sorry for the issues you are having. I can help troubleshoot this with you.

    It looks like that warning is because our plugin does not generate a offer without tickets.

    Although it is generating a warning and is recommend by Google it is not required:

    offers (optional) – An offer to buy tickets for this event. If present, some subfields are required.

    https://developers.google.com/structured-data/rich-snippets/events

    I looked into how the plugin works and we do add offers if using Event Tickets Plus, I checked against the structured data tool and it worked correctly with that plugin and an event with tickets.

    We have a filter and I created a quick snippet to fill in the offer field:

    https://gist.github.com/jesseeproductions/f022b8d8b4a9fa03de21

    It could be expanded on to do more, but this will return a valid offer if you fill in the price.

    You could add more custom fields using a plugin such as ACF to add in specific information or each events.

    However, that is beyond the support we can provide on this, beyond answering a couple questions.

    Thanks

    #1078149
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘json code warning’ is closed to new replies.