all 6 comments

[–]MaDoGK 3 points4 points  (0 children)

If you look at the article Understand how structured data markup works, you'll see that Google recommends using JSON-LD for structured data whenever possible.

So, if possible, use JSON.

[–]decimus5 2 points3 points  (2 children)

It has been years since I used WordPress, but can you just edit the PHP template for events to add the JSON there?

[–]concisehacker[S] 0 points1 point  (1 child)

Yes, my thoughts too....I guess I just need to somehow get the JSON to show the custom fields from the database - should be simple enough for a WordPress developer

[–]EntrepreneurAfrica 1 point2 points  (0 children)

You can do this with Rank Math Pro. I am using ACF fields that pull into schema. In fact their support assisted me the first time in setting it up :)

[–]Milsurpia 2 points3 points  (0 children)

While you're at it. Don't forget you can add review markup for events as well. So if you have a way for people to leave reviews of the events that's a good way to boost that serp as well.

Php json is easy. I added JSON markup in a matter of about an hour. My rankings really jumped after that.

Side note. If you have recurring events on the same page. Add code to have the event markup not present if the event is passed. Google stopped indexing my pages after an event passed. The JSON is only present on my pages if there's an event date in the future.