Support

Home Forums Event Espresso Premium Add the new organizer property to your Event items

Add the new organizer property to your Event items

Posted: May 1, 2020 at 8:55 am

Viewing 3 reply threads


wilmed2019

May 1, 2020 at 8:55 am

Got a notice from Google Search Console that I could now add the “organizer” property (along with organizer.name and .url).

Is there an easy way to go about adding these custom fields? I tried the ‘Custom Fields’ dialog but I can’t make heads or tails of the available field names. I hope I’m just being dense. Thanks in advance for the help.


Josh

  • Support Staff

May 1, 2020 at 12:01 pm

Hi,

Adding this will require adding some custom PHP code to your site. With the events on your site, is every event going to have a different organizer or do all events have the same organizer?


wilmed2019

May 1, 2020 at 12:39 pm

Good question.
The short answer is while we could set the organizer.name to be the same but there’s also an organizer.url might need to vary depending on how Google chooses to display it. The organizer.name could refer to the instructor which changes depending on location and date.

What What do you recommend?


Josh

  • Support Staff

May 1, 2020 at 5:06 pm

You could add this code to your site:

https://gist.github.com/joshfeck/69af63d6782b664a86df7baf83db9340

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

Then, in the event editor, under Custom Fields and under Add New Custom Field:, click Enter New.
For the field Name, input organizer_name, then input the Value for Organizer Name. Then click Add Custom Field.
Then for the URL, click Enter New.
For the field Name, input organizer_url, then input the Value for Organizer URL. Then click Add Custom Field.

Viewing 3 reply threads

The support post ‘Add the new organizer property to your Event items’ 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