Posted: 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 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.
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 |
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/ |
|
|
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 |
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. |
|
|
Thanks Josh, I’m getting a 500 error when saving the change to the event list pages options. This page isn’t working |
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 |
|
|
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 |
You could try updating that options page with all other plugins (including any EE4 add-ons you might have installed) deactivated. |
|
|
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 |
that’s in the wp_options table within a serialized option value so you really cannot manually set it. |
|
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.