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


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.

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Josh 3 weeks, 5 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!