{"id":1954220,"date":"2022-09-21T10:08:14","date_gmt":"2022-09-21T14:08:14","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/?post_type=post&#038;p=1954220"},"modified":"2026-04-23T15:08:59","modified_gmt":"2026-04-23T19:08:59","slug":"past-events","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/past-events\/","title":{"rendered":"Working with Past Events"},"content":{"rendered":"\n<p>When using <a href=\"https:\/\/theeventscalendar.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar,<\/a> you&#8217;ll inevitably accrue several past events. Depending on the needs of your website, you may decide to display these past events for your users to see. <\/p>\n\n\n\n<p>The Events Calendar is set up to focus on current and upcoming events, and by default this is what the main calendar page will show, but the good news is that with a bit of thought, you&#8217;ll be able to display your past events for your users. (A note: the month view of our main calendar, by default, displays past events when it displays all events in the current month.)<\/p>\n\n\n\n<p>There are a few different ways to do this, and we&#8217;ll show you how along with some other essential things to know about using past events with The Events Calendar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-your-past-events\">Display your past events<\/h2>\n\n\n\n<p>You can find your past events on your site at <code>https:\/\/yoursite.com\/events\/list\/?eventDisplay=past<\/code><\/p>\n\n\n\n<p>If you&#8217;d like to display your past events on your site, you can <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/adding-a-calendar-link-to-your-site-menu\/\" target=\"_blank\" rel=\"noreferrer noopener\">add a menu item in WordPress<\/a> and link your site visitors to your past events directly.<\/p>\n\n\n\n<p>If you have <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">Events Calendar Pro<\/a>, you can use the <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/embedding-calendar-views-with-the-tribe_events-shortcode\/\" target=\"_blank\" rel=\"noreferrer noopener\">[tribe_events] shortcode<\/a> to display your past events using a past date.<br><strong>Please Note: <\/strong>the past events parameter for shortcodes is only available for Month view, as that article mentions as well. <\/p>\n\n\n\n<p>You can also show past events in reverse order using the snippet provided in <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/showing-past-events-in-reverse-order\/\" target=\"_blank\" rel=\"noreferrer noopener\">this Knowledgebase article<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-importing-past-events\">Importing past events<\/h2>\n\n\n\n<p>If you&#8217;d like to import past events using our <a href=\"https:\/\/theeventscalendar.com\/products\/event-aggregator\/\" target=\"_blank\" rel=\"noreferrer noopener\">Event Aggregator service<\/a>, by default, these events won&#8217;t import. However, if you specify a date parameter, you will be able to get all of your past events imported onto your WordPress site alongside your other events.<\/p>\n\n\n\n<p>Learn more about importing your events in <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/event-aggregator-importing-events-from-a-feed-or-url\/\" target=\"_blank\" rel=\"noreferrer noopener\">this Knowledgebase article<\/a>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-hiding-past-events\">Hiding Past Events<\/h2>\n\n\n\n<p>By default, when there are no upcoming events, The Events Calendar displays a \u201cRecent Past Events\u201d view to prevent an empty calendar. This feature showcases the most recent past events to keep your calendar populated.<\/p>\n\n\n\n<p>If you wish to hide past events, you can use one of the methods below:<\/p>\n\n\n\n<p><strong>The Events Calendar Tweaks Extension<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/theeventscalendar.com\/extensions\/the-events-calendar-tweaks\/\">The Events Calendar Tweaks extension<\/a>&nbsp;offers settings to manage past events:\u200b<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Disable \u201cRecent Past Events\u201d<\/strong>: Prevents the display of recent past events when no upcoming events are available.\u200b<\/li>\n\n\n\n<li><strong>Hide Past Events in Month View<\/strong>: Removes events from past days in the Month view. Note that this only affects the current month.\u200b<\/li>\n<\/ul>\n\n\n\n<p>After installing the extension, navigate to&nbsp;<strong>Events &gt; Settings &gt; Tweaks<\/strong>&nbsp;to configure these options.<\/p>\n\n\n\n<p><strong>Remove Past Events<\/strong>&nbsp;<strong>Extension<\/strong><\/p>\n\n\n\n<p>To automatically trash past events after a certain period, install the&nbsp;<a href=\"https:\/\/theeventscalendar.com\/extensions\/remove-past-events\/\">Remove Past Events Extension<\/a>. This extension adds more frequency options for automatically moving past events to the trash. Go to&nbsp;<strong>Events &gt; Settings &gt; General &gt; Maintenance<\/strong>&nbsp;and select the desired time frame (e.g., 15 minutes, 1 day, 1 week) for removing past events.<\/p>\n\n\n\n<p>This method helps keep your calendar clean by removing outdated events automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-showing-sold-out-for-past-events\">Showing \u201cSold Out\u201d for Past Events<\/h2>\n\n\n\n<p>By default, the&nbsp;<strong>\u2018Sold out!\u2019<\/strong>&nbsp;message is not shown for past events. This snippet brings it back.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"264\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/image.png\" alt=\"\" class=\"wp-image-1969449\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/image.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/image-300x77.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/09\/image-768x198.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Add this snippet to your child theme\u2019s&nbsp;<code>functions.php<\/code>&nbsp;file or via a&nbsp;<a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/\">Code snippets plugin<\/a>.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/**\n * Change the Get Tickets on List View and Single Events\n *\n * @param string $translation The translated text.\n * @param string $text      The text to translate.\n * @param string $domain    The domain slug of the translated text.\n *\n * @return string The translated text or the custom text.\n *\/\n  \nadd_filter( &#039;gettext&#039;, &#039;tribe_change_get_tickets&#039;, 20, 4 );\nfunction tribe_change_get_tickets( $translation, $text, $domain) {    \n  if ( $domain != &#039;default&#039;\n    &amp;&amp; strpos( $domain, &#039;event-&#039; ) !== 0\n  ) {\n    return $translation;\n  }\n  \n  $ticket_text = &#x5B;\n    \/\/ Get Tickets on List View\n    &#039;%s are no longer available&#039;    =&gt; &#039;Sold Out&#039;,\n  ];\n  \n  \/\/ If we don&#039;t have replacement text, bail.\n  if ( empty( $ticket_text&#x5B; $text ] ) ) {\n    return $translation;\n  }\n  \n  return $ticket_text&#x5B; $text ];\n}\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-notes\">Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Originally written in November 2018<\/li>\n\n\n\n<li>Tested with Event Tickets 4.8.4<\/li>\n\n\n\n<li>Author: Andr\u00e1s Guseo<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-disclaimer\">Disclaimer<\/h3>\n\n\n\n<p>As with all of our recipes, please note that we share this in the hope it will be useful,&nbsp;<strong>but without any guarantees or commitments<\/strong>. If you wish to use it, it is&nbsp;<em>your<\/em>&nbsp;responsibility to test it first of all and adapt it to your needs (or find someone who can do so on your behalf). We are unable to provide further support in relation to this recipe.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using The Events Calendar, you&#8217;ll inevitably accrue several past events. Depending on the needs of your website, you may decide to display these past events for your users to see. The Events Calendar is set up to focus on current and upcoming events, and by default this is what the main calendar page will&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","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":[347],"tags":[],"stellar-product-taxonomy":[158,161],"class_list":["post-1954220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","stellar-product-taxonomy-events-calendar-pro","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":347,"label":"How To"}],"stellar-product-taxonomy":[{"value":158,"label":"Events Calendar Pro"},{"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":"Jaime Marchwinski","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":347,"name":"How To","slug":"how-to","term_group":0,"term_taxonomy_id":347,"taxonomy":"category","description":"","parent":0,"count":109,"filter":"raw","term_order":"0","cat_ID":347,"category_count":109,"category_description":"","cat_name":"How To","category_nicename":"how-to","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1954220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1954220"}],"version-history":[{"count":14,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1954220\/revisions"}],"predecessor-version":[{"id":1969910,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1954220\/revisions\/1969910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1954220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1954220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1954220"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1954220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}