Support

Home Forums Event Espresso Premium Google Structured Data and Event Categories

Google Structured Data and Event Categories

Posted: January 2, 2018 at 3:25 am

Viewing 9 reply threads


Phil Evans

January 2, 2018 at 3:25 am

Hi all,

I’ve been trying to work out the best way to get Google to display our events in search results and have been trying to use Google’s structured data highlighter to achieve this.

However, we have several different categories of events that we would like to display. I’m thinking that perhaps I need to change the way EE events are structured.

Currently all events are using the same URL slug

e.g. https://www.impactmh.org.uk/courses/you-programme-enrolment-bedford-feb-march-2018/

I’m thinking that I should change this to

https://www.impactmh.org.uk/courses/you-programme-enrolment/you-programme-enrolment-bedford-feb-march-2018/

Another example

https://www.impactmh.org.uk/courses/you-programme-bedford-january-2018/

would become

https://www.impactmh.org.uk/courses/you-programme/you-programme-bedford-january-2018/

I would then look to create several different page sets for each category, eg.

  • You Programme Enrolment
  • You Programme Course
  • etc.

Would this be a sensible approach?

If so, how can I force my URLs to change to include the category slugs or force Google data to use the existing slug – e.g. https://www.impactmh.org.uk/you-programme-enrolment/you-programme-enrolment-bedford-jan-2018/

Hope that makes sense.

Any advice or guidance would be greatly appreciated.

Thanks

Phil


Josh

  • Support Staff

January 3, 2018 at 7:49 am

Hi Phil,

Another approach you could take that doesn’t involve rewriting URL patterns would be to make use of the existing taxonomy archive URLs. On your site these include:

https://www.impactmh.org.uk/event-category/you-programme-enrolment/
https://www.impactmh.org.uk/event-category/you-programme/
https://www.impactmh.org.uk/event-category/pathways-to-recovery/
https://www.impactmh.org.uk/event-category/pathways-to-recovery-enrolment/


Phil Evans

January 3, 2018 at 10:41 am

Hi Josh,

Thanks for your help, but I don’t think that’s going to work.

Google’s data highlighter needs venue details (which should be displayed anyway), but the category list view doesn’t give us that.

https://screencast.com/t/UbvIfVmTC

Scratching my head with this one.

With thanks

Regards

Phil


Josh

  • Support Staff

January 3, 2018 at 11:12 am

Hi Phil,

You can include venue details on those pages by going to Event Espresso > Events > Templates, then below the “Event List Pages” heading, you change the Display Venue Details setting to Yes, then click Save.


Phil Evans

January 3, 2018 at 11:21 am

Thanks Josh,

I’m getting a 500 error when saving the change to the event list pages options.

This page isn’t working
http://www.impactmh.org.uk is currently unable to handle this request.
HTTP ERROR 500


Josh

  • Support Staff

January 3, 2018 at 11:35 am

You can enable WP_DEBUG mode to find out why your site can’t handle the request. Here’s a guide that shows how to activate WP_DEBUG mode:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug


Phil Evans

January 3, 2018 at 12:07 pm

Thanks Josh.

This is the error being logged. FYI, we’re running PHP 7.2.

[03-Jan-2018 19:03:53 UTC] PHP Fatal error: Uncaught Error: Class name must be a valid object or a string in /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php:449
Stack trace:
#0 /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php(476): EE_Config->_reset_espresso_addon_config()
#1 /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(3897): EE_Config->update_espresso_config(false, false)
#2 /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php(860): EE_Admin_Page->_update_espresso_configuration(‘Template Settin…’, Object(EE_Template_Config), ‘/home/peersupp/…’, ‘_update_templat…’, 860)
#3 /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(984): Extend_Events_Admin_Page->_update_template_settings()
#4 /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/ in /home/peersupp/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php on line 449


Josh

  • Support Staff

January 3, 2018 at 12:22 pm

You could try updating that options page with all other plugins (including any EE4 add-ons you might have installed) deactivated.


Phil Evans

January 3, 2018 at 12:25 pm

Thanks, I’ll try that.

In the meantime, which database table will I find that option in? I can try setting it to on manually so at least we can crack on with the structured data set up.

Regards


Josh

  • Support Staff

January 3, 2018 at 12:42 pm

that’s in the wp_options table within a serialized option value so you really cannot manually set it.

Viewing 9 reply threads

The support post ‘Google Structured Data and Event Categories’ 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