Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Event Schema in WordPress (Step by Step)

If you are running an online event, then you are probably looking to get the word out about it online. This is where schema markup can be handy for making your event more visible in search engine results.

Event schema will help Google and other search engines understand your event details better. It will allow them to showcase your events in event listings, rich snippets, and Google knowledge panels, attracting a larger audience.

In this article, we will show you how to add event schema in WordPress to improve your rankings.

How to Add Event Schema in WordPress

Why Add Event Schema in WordPress?

Event schema markup is a special type of HTML code that’s added to your WordPress website. It structures your event data so that it is better understood by search engines and more clearly displayed in search results.

Schema markup isn’t displayed on your website’s front end. Instead, your event details, such as the date and time, location, and ticket information, are added to your site’s source code so that search engines can list your event in relevant searches.

This improves your SEO and gives people a better chance of finding your event. As a result, you may attract a more targeted audience interested in what your event has to offer.

Once you add schema markup, your event listing may appear in event listings, rich snippets, and Google knowledge panels, which appear above regular search results. These elements make your events more visible, potentially increasing click-through rates to your event page.

Example of an Events Listing in a Google Search

With that being said, let’s take a look at how to add event schema in WordPress. Here are the steps we will cover:

How to Add Event Schema in WordPress

The easiest way to add event schema markup in WordPress is using All in One SEO (AIOSEO). It’s the best WordPress SEO plugin on the market and supports a growing number of schema types to help search engines better understand your content.

First, you will need to install and activate the AIOSEO plugin on your site. If you need help, then just follow our tutorial on how to install a WordPress plugin.

Note: You will need the AIOSEO Pro version, as it includes the Schema Generator and other SEO features like sitemaps and the redirection manager. There is also a free version of AIOSEO that you can try.

Upon activation, the plugin will automatically launch its setup wizard.

Go ahead and click the ‘Let’s Get Started’ button, and then you can follow our guide on how to properly set up All in One SEO for WordPress.

Click let's get started AIOSEO setup wizard

Adding Event Schema to a WordPress Post or Page

Once you have finished configuring All in One SEO, you need to open the post or page where you want to add the event schema.

According to Google’s event schema requirements, this should be a web page that promotes a single event. That’s because Google requires that each event have a unique URL.

Once you are in the WordPress content editor, you can find the ‘AIOSEO Settings section by scrolling to the bottom of the page.

You will need to click on the ‘Schema’ tab. Here, you can see any schema that has already been enabled, such as the Article schema type.

Adding how to schema to WordPress using AIOSEO

Now, you can add the event schema to the post. Simply click the ‘Generate Schema’ button.

You will be able to choose from a wide range of different schema types using AIOSEO’s Schema Catalogue. Simply find the ‘Event’ option and then click its ‘+ Add Schema’ button.

Adding Event Schema in AIOSEO

This will bring up a form where you can fill in the details about your event.

Filling in the Event Schema Form

First, you need to give your event a name.

By default, AIOSEO uses the post title by adding the ‘Post Title’ smart tag. You can enter a different title by deleting the ‘Post Title’ smart tag and typing a new one.

Adding Event Name and Description in AIOSEO Schema

Next, you can add an event description, which is typically displayed on search engine results pages (SERPs). The post excerpt is used by default, but it is best to delete this smart tag and type a more helpful description.

Next, you can select the Type of event you are holding from a drop-down menu.

Adding Event Type in AIOSEO Schema

After that, you need to choose an event status.

Initially, you should choose the ‘Scheduled’ status. If necessary, you can change this in the future if the event is canceled, postponed, or rescheduled.

Adding Event Status in AIOSEO Schema

Next, you need to specify the attendance mode.

There are options for online and offline, as well as events that can be attended both ways.

Specifying Attendance Mode in AIOSEO Schema

Next, you can choose the date of the event.

When you click the ‘Event Date’ field, a pop-up calendar will appear.

Here, you can click the start date and then the finish date of the event, followed by the OK button. For one-day events, simply click the same date twice.

Adding Event Date in AIOSEO Schema

Now, you can fill in the location details for the event. If your event is online, then simply leave this section blank.

You can start by typing the name of the venue and a URL to its website.

Adding Event Location in AIOSEO Schema

After that, you should fill in the address fields to help participants navigate to the event.

Next, you will come to the Offer section, where you can type the price for the event. For free events, simply enter 0.

If tickets are being sold, then you can enter the sale start date and the URL to the page where they can be purchased.

Adding Event Ticket Information in AIOSEO Schema

The last two sections let you enter information about the event organizer and performer.

The Organizer section lets you specify whether the organizer is a person or organization. You can also enter their name and a link to their website.

Adding Event Organizer and Performer Information in AIOSEO Schema

Finally, if the event is a performance, then you can enter similar details about the performer.

You can also upload an image for your event or select one from the WordPress media library. The maximum image size is 112×112 pixels.

Adding Event Image in AIOSEO Schema

Once the event schema form has been filled out, make sure you click the ‘Add Schema’ button at the bottom to add it to your post or page.

Tip: If you will be hosting more events in the future that share similar information to what you entered, then you can save time by clicking the ‘Save Schema as Template’ button.

How to Test Your Event Schema in WordPress

You can test your schema from the AIOSEO Settings » Schema section at the bottom of the WordPress content editor.

Get started by clicking the ‘Validate Schema’ button.

Validating Schema in AIOSEO

This will display your schema markup code in a pop-up window.

You can test the schema by clicking the ‘Test with Google’ button.

Schema Preview in AIOSEO

This will open Google’s Rich Results Test tool in a new tab.

Simply click the ‘Test Code’ button to continue.

Testing Code in Google Rich Results Test

Google will analyze your page for different kinds of schema markup. That means you may see multiple schema types, such as Articles, Breadcrumbs, FAQs, and more.

You can now click on the ‘Events’ section to see the test details of your Event schema.

Test Results in Google Rich Results Test

You should see all the event information you added to this page or post.

You may also see a list of critical or non-critical issues.

Event Schema Issues in Google Rich Results Test

If the information is wrong, incomplete, or formatted incorrectly, then you will need to fix those issues.

Simply return to the tab where you were editing the post or page, and then click the pencil icon next to the Event schema.

Editing Event Schema in AIOSEO

Now you can edit the information in the Event schema form and fix those issues. After updating the schema, you may like to test the schema again.

Bonus: Adding Schema Markup for Local SEO

If your event is being held at your business’s physical location, then you can boost your rankings by optimizing your site for local SEO.

You can get started by navigating to the All in One SEO » Local SEO page and then clicking the ‘Activate Local SEO’ button.

activate local seo

Once this module is activated, you can add important information about your business in the Locations tab.

This will help Google and other search engines better understand and display your business information on local search results pages.

business info

For detailed instructions, see our ultimate guide to WordPress local SEO.

Expert Tip: Prefer to leave SEO to the experts? Our team can optimize your website for search engines through technical SEO audits, keyword optimization, local SEO optimization, and more. Check out our WPBeginner WordPress SEO Services today!

Expert Guides for Using Schema Markup in WordPress

Now that you know how to add event schema, you may want to learn how to add other types of schema markup to your WordPress website:

We hope this tutorial helped you learn how to add event schema in WordPress. You may also want to see our guide on how to create a simple event calendar in WordPress or our expert pick of the best WordPress SEO plugins and tools.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

8 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Dennis Muthomi says

    I’ve been looking to improve my event listings’ visibility in search results, and this article provides a CLEAR, tutorial using AIOSEO.

    I particularly appreciate the section on testing the schema markup using Google’s Rich Results Test tool. It’s crucial to validate my schema implementation, and your instructions make it easy to identify and fix any issues.
    Great resource overall!

  3. Jiří Vaněk says

    I have a list of events on my blog that interest me, each with a description and an invitation. AIO SEO is great, and when I started adding Event Schema, it really paid off in terms of better SEO results. I wanted to use this guide mainly to ensure that I’m doing everything correctly and properly, as it should be done. Thank you for creating this guide, which allowed me to try out Event Schema exactly as you recommended. I love the AIO SEO plugin.

  4. Kzain says

    This is a great article on how to add event schema to a WordPress website. I found the information on why event schema is useful to be very helpful. I’ve been using the All in One SEO plugin for a while now, but I didn’t know that it could be used to add event schema. I’m definitely going to try this out on my own website.

    • Jiří Vaněk says

      AIO SEO offers several types of schemas, and this is just one of them. If you’re not using them yet, you should definitely start—not just with the Event schema, but also with How-To, Video, FAQ, and others. I started using schemas specifically because of AIO SEO, and they have significantly helped me with optimization and improving visibility. It’s a great competitive advantage, as these schemas are not widely used. So, if you start using them, you’ll quickly see in Google Search Console just how powerful they are.

      • Kzain says

        That’s a great point about AIO SEO and the benefits of using different types of schemas. I’ve heard similar things about how schemas can significantly improve search engine visibility.

        • Jiří Vaněk says

          Yes, I’ve tested it in practice, and I couldn’t believe it myself. The first fact is that Google learns to better understand your content. You can see this in Google Search Console if you use it. Google starts to categorize your articles into those with videos, recipes, reviews, and so on. Thanks to this, and with well-chosen keywords, it can better target the right search queries. If you start using something like FAQ schema, you’ll find yourself more often in the “People also ask” section. Overall, when I checked Google Analytics, about two months after carefully implementing schemas, even in older articles, my traffic increased by around 20%. It does mean more work when creating an article, but in my experience, using schemas is a significant SEO advantage, and incorporating them into your articles really helps.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.