Support

Home Forums Event Espresso Premium Schmea and structured Data

Schmea and structured Data

Posted: September 22, 2017 at 11:22 pm


rhumphrey

September 22, 2017 at 11:22 pm

Hi guys, i have been looking at the schema for my site and seeing how the events are picked up. looking at what google search console has identified so far, it seems to be collecting and placing the events into multiple locations, for example events and blog posts, this is going to cause me problems as not all my events are being picked up under events markup, so when this is published on google search results, we will be missing lots of events. can you tell me why this is happening and how it can be resolved.

thanks


Josh

  • Support Staff

September 25, 2017 at 9:33 am

Hi there,

This is the answer from Google why:

https://support.google.com/webmasters/answer/34441?hl=en

So for example if some of your events are duplicated content of other events, Google may not index all of them.

Ways to avoid this is you make sure each upcoming event has some unique content, and with that you may want to set all expired events to not be indexed or included in the site’s xml sitemap.

Here’s a link to a code example that shows how to add a noindex meta tag to expired Event Espresso 4 events:
https://gist.github.com/joshfeck/70979dc12f93ab25dd668ed4500be477

Here’s another code example that works with the Yoast WordPress SEO plugin that sets expired events to not be included in the generated XML sitemaps:

https://gist.github.com/joshfeck/85dcc9947b8f406093498464f542e990

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘Schmea and structured Data’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso