Posted: March 23, 2020 at 6:04 pm
Hi there, I’m getting notifications from Google Search Console to include an “eventAttendanceMode” tag? How would I go about implementing that? Thanks! |
|
Hi, This is something we can add in a future version. May I ask which of the following “attendance modes” apply to your events? The three options are: |
|
sounds good, most of our events are going to be in person or in this case offline |
|
But having the option of “mixed” would also be good, since some events may include the ability to remote in while others attend in person. |
|
We’re planning on adding this to the next release of EE4. In the case of a “mixed” eventAttendanceMode, how that will work is if the venue has a street address and the venue also has a URL set for “URL of Event:” then the eventAttendanceMode property will show “mixed”. |
|
Not sure how it would work but nowadays it’s not uncommon for events to be mixed like that. For instance, concerts that are also streamed. I would imagine it would work by making the template tag the URL for the event appropriately and differently than the street address for the event. When the search engines see an event is tagged as mixed, I’m sure they’ll apply some fancy algorithmic considerations to sort it all out. |
|
For events like you’ve described, we recommend setting the “URL of Event” field within the venue. If that URL is set, the appropriate tag will be output in the event schema markup. |
|
Update: This has been added in version 4.10.5.p. |
|
Hi! I noted this was added… however, how can I control it? All of our events are now online. I see in the code I can set a virtual URL and get OnlineEventAttendanceMode But, two things: I already added to my Schema ld+json using a hook. I don’t want to modify every venue on our hundreds of events. Eventually, we will have normal life again and it will just have to be switched back. How can I turn off this extra schema being added? It conflicts with my already hooked-in schema modifications I’ve made in functions.php. Thanks! |
|
I have now hacked the json schema template to remove the new schema lines. I know this is not sustainable, but I need the correct info put into my schema and this solution is not viable. Here’s what I need and what I achieved using the existing hook:
Please inform how this will be updated for situations where we don’t want to modify Venue information to control the schema.org tags. Thank you! |
|
Hi Daniel, You can use the See also: and https://eventespresso.com/topic/ldjson-event-description-displays-shortcodes/#post-309884 |
|
Ok, great! I had noticed that hook (FHEE__EEH_Schema__add_json_linked_data_for_event__template_args), but was concerned about my ability to use the array syntax using that hook – it doesn’t allow that. However, I can use the single element syntax with no issue. Not as customizable, but in my case it doesn’t matter – I just removed the syntax to use – EventMovedOnline. For anyone who wants to see:
Thank you! |
|
Hi, I’m not sure why you wouldn’t be allowed to use array syntax in your custom callback function, can you elaborate? |
|
Sure! The callback can only manipulate the values of the array. Therefore, you cannot implement an array using the hook: See the json template:
|
|
It sounds like you want to pass multiple event statuses. We can do a pull request with some changes to the template that will make that possible. |
|
The support post ‘eventAttendanceMode Tags for Schema’ 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.