{"id":1966268,"date":"2025-07-31T20:11:00","date_gmt":"2025-08-01T00:11:00","guid":{"rendered":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/?p=1966268"},"modified":"2025-07-31T20:11:01","modified_gmt":"2025-08-01T00:11:01","slug":"using-yoast-seo-custom-event-variables-with-the-events-calendar","status":"publish","type":"post","link":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/using-yoast-seo-custom-event-variables-with-the-events-calendar\/","title":{"rendered":"Using Yoast SEO Custom Event Variables with The Events Calendar"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction\"><strong>Introduction<\/strong><\/h2>\n\n\n\n<p>When running an events-focused website using The Events Calendar plugin for WordPress, optimizing your site\u2019s SEO is crucial to ensure events are discoverable by search engines and attractive to users. One way to enhance your event listings is by customizing your <code>&lt;title&gt;<\/code> tags \u2014 the titles that appear in browser tabs and search engine results \u2014 using <strong>custom variables<\/strong> from <strong>Yoast SEO<\/strong>.<\/p>\n\n\n\n<p>By integrating custom event variables (like an event&#8217;s start date) into your title templates, you can dynamically populate titles with highly relevant, event-specific information. This not only can enhance your click-through rates by providing more context in search results, but also streamlines your workflow by automating title generation across all your events.<\/p>\n\n\n\n<p>This tutorial walks you through:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configuring a <strong>site-wide event variables<\/strong> in Yoast SEO using event data.<\/li>\n\n\n\n<li><strong>Manually overriding or inserting a custom variable<\/strong> on a per-event basis.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<p>Ensure you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wordpress.org\/plugins\/the-events-calendar\/\">The Events Calendar<\/a> plugin installed and active.<\/li>\n\n\n\n<li>The <a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\">Yoast SEO<\/a> plugin installed and active.<\/li>\n\n\n\n<li>Existing <strong>events created<\/strong> and accessible from your WordPress dashboard (<code>Events &gt; All Events<\/code>).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Available Custom Event Variables<\/h2>\n\n\n\n<p>The Events Calendar integrates with Yoast SEO to provide several dynamic variables you can use in your SEO titles and meta descriptions. These variables pull specific event data directly into your SEO fields, ensuring accuracy and relevance.<\/p>\n\n\n\n<p>Here are the custom event variables you can use:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>%event_start_date%<\/code> <strong>\u2192<\/strong> Get the event start date<\/li>\n\n\n\n<li><code>%event_end_date%<\/code> <strong>\u2192<\/strong> Get the event end date<\/li>\n\n\n\n<li><code>%venue_title%<\/code> <strong>\u2192<\/strong> Get the venue name<\/li>\n\n\n\n<li><code>%venue_city%<\/code> <strong>\u2192<\/strong> Get the venue city<\/li>\n\n\n\n<li><code>%venue_state%<\/code> <strong>\u2192<\/strong> Get the venue state<\/li>\n\n\n\n<li><code>%organizer_title%<\/code> <strong>\u2192<\/strong> Get the organizer name<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-by-step-instructions\"><strong>Step-by-Step Instructions<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-event-variables-in-site-wide-seo-titles\"><strong>Use Event Variables in Site-Wide SEO Titles<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Yoast SEO &gt; Settings<\/strong> in your WordPress admin.<\/li>\n\n\n\n<li>Navigate to the <strong>Content Types<\/strong> section.<\/li>\n\n\n\n<li>Locate the <strong>Events<\/strong> post type <em>(This option appears only if The Events Calendar is active).<\/em><\/li>\n\n\n\n<li class=\"has-theme-palette-9-background-color has-background\">In the <strong>SEO Title<\/strong> field, click the <strong><span style=\"background-color: rgba(15, 16, 49, 0.2);\">\u201cInsert variab<\/span>le\u201d<\/strong> button.<\/li>\n\n\n\n<li>Start typing the desired variable (e.g., <code>%event_start_date%<\/code>) or choose from the list of suggestions.<\/li>\n\n\n\n<li>Select the corresponding variable from the suggestions and press <strong>Enter<\/strong>.<\/li>\n\n\n\n<li>You can then rearrange variables, add separators, or include other static text to customize your title template.<\/li>\n<\/ol>\n\n\n<style>.kb-image1966268_64dd45-f4 .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<figure class=\"wp-block-kadence-image kb-image1966268_64dd45-f4 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"964\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-01.jpg\" alt=\"\" class=\"kb-img wp-image-1966335\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-01.jpg 1600w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-01-300x181.jpg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-01-1024x617.jpg 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-01-768x463.jpg 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-01-1536x925.jpg 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-the-variable-in-individual-event-posts\"><strong>Use the Variable in Individual Event Posts<\/strong><\/h3>\n\n\n\n<p>If you&#8217;d like to override the title on a per-event basis:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Edit an individual event post by navigating to <strong>Events &gt; All Events<\/strong>, then clicking <strong>Edit<\/strong> on the desired event.<\/li>\n\n\n\n<li>Scroll down to the <strong>Yoast SEO<\/strong> meta box.<\/li>\n\n\n\n<li>Click the <strong>SEO<\/strong> tab.<\/li>\n\n\n\n<li>In the <strong>SEO Title<\/strong> field, click the <strong><span style=\"background-color: rgba(15, 16, 49, 0.2);\">\u201cInsert v<\/span>ariable\u201d<\/strong> button and select your desired custom variable (e.g., <code>%event_start_date%<\/code>).<\/li>\n<\/ol>\n\n\n\n<p>This action will override the global SEO title pattern for this specific event, allowing for a unique, custom title.<\/p>\n\n\n<style>.kb-image1966268_bf14a4-25 .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<figure class=\"wp-block-kadence-image kb-image1966268_bf14a4-25 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1491\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-02.png\" alt=\"\" class=\"kb-img wp-image-1966281\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-02.png 1600w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-02-300x280.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-02-1024x954.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-02-768x716.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/07\/event-title-events-calendar-yoast-seo-integration-02-1536x1431.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>By leveraging <strong>custom event variables<\/strong> within Yoast SEO, you&#8217;re not only tailoring your titles for <strong>better search visibility<\/strong>, but also adding meaningful context for both users and search engines. Customizing titles with data like <code>%event_start_date%<\/code> helps set expectations and boost relevance, which can enhance <strong>click-through rates<\/strong> in search results and provide a consistent branding experience.<\/p>\n\n\n\n<p>For any website focused on event promotion, this powerful technique seamlessly connects dynamic event content with precise SEO metadata. This empowers you to <strong>scale your optimization efforts<\/strong> efficiently and effectively, ensuring your events get the visibility they deserve.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction When running an events-focused website using The Events Calendar plugin for WordPress, optimizing your site\u2019s SEO is crucial to ensure events are discoverable by search engines and attractive to users. One way to enhance your event listings is by customizing your &lt;title&gt; tags \u2014 the titles that appear in browser tabs and search engine&#8230;<\/p>\n","protected":false},"author":72,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[1],"tags":[204],"stellar-product-taxonomy":[161],"class_list":["post-1966268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-seo","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":1,"label":"Uncategorized"}],"post_tag":[{"value":204,"label":"SEO"}],"stellar-product-taxonomy":[{"value":161,"label":"The Events Calendar"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Marcos Barretto","author_link":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/author\/marcosb\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Uncategorized","slug":"uncategorized","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":139,"filter":"raw","term_order":"0","cat_ID":1,"category_count":139,"category_description":"","cat_name":"Uncategorized","category_nicename":"uncategorized","category_parent":0}],"tag_info":[{"term_id":204,"name":"SEO","slug":"seo","term_group":0,"term_taxonomy_id":204,"taxonomy":"post_tag","description":"","parent":0,"count":11,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/72"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1966268"}],"version-history":[{"count":9,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966268\/revisions"}],"predecessor-version":[{"id":1966336,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966268\/revisions\/1966336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1966268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1966268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1966268"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/dev.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1966268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}