Hi Casper,
This is already available as an extension:
https://wp.theater/downloads/rich-snippets-theater/
Jeroen
Hi Jeroen,
How long does it take Google to index the structured data?
My site is still not showing up, after 5 days. I do not have events on my home page but on a separate page (lingefilm.nl/programma), does that matter?
While debugging using the console @ Google (https://developers.google.com/structured-data/testing-tool/) I found that the “sameAs” url is incorrect. It points to the subdirectory in which WP is installed (lingefilm.nl/wp), not to the root (lingefilm.nl). I expect this can be a problem to match the events to our identity (lingefilm.nl) on Google. Can I change this to the root?
Thanks,
Casper
Casper,
I don’t know how long it can take. Up to a week maybe.
You can manipulate the ‘sameAs’ url in your functions.php like this:
function wpt_change_event_location_url($location_url, $event) {
return 'https://www.lingefilm.nl';
}
add_filter('wpt/structured_data/event/location/url', 'wpt_change_event_location_url', 10, 2);
Hi Jeroen,
It has been more almost 2 weeks since I installed the snippets add-on, and I am not seeing Google picking up and using our event info. Technically the lingefilm.nl/programma looks fine.
Do you know if I need to help Google by somehow adding a snippet/ pointer on the home page of our site? Any other ideas?
Thanks,
Casper
I noticed that your events don;t have prices. This is a required by Google. Maybe that is the reason that they refuse to show your event data.
See: https://developers.google.com/structured-data/rich-snippets/events#basic_markup_properties
Hmm, that might be it, but the debug console only warns that the field is not filled in and that it is not mandatory.
Is there any way I can sync the event prices from ActiveTickets to WordPress?
Prices are already part of the ActiveTickets import by default. Maybe you need explicitly make the prices available to the website sales channel somewhere inside ActiveTickets.