Skip to main content
All CollectionsKnowlegde BaseDisplay dates on a website
Extending the Event Display Beyond One Year in the ABOSS WordPress Plugin
Extending the Event Display Beyond One Year in the ABOSS WordPress Plugin

How to manually change the one-year event display limit in your WordPress plugin.

Geertje avatar
Written by Geertje
Updated over a month ago

How to manually change the one-year event display limit in your WordPress plugin.

By default, the ABOSS WordPress plugin only shows events scheduled within the next year. Events happening more than one year from now are not displayed automatically. However, you can manually adjust this setting if needed.

Please note that making this change requires editing files on your server, so you may want to consult the developer who created your website for assistance.


Steps to Extend the Event Display Period

Step 1: Access the Events File

To begin, you’ll need to manually edit the events.php file on your server. You can access this file through the following link:

Step 2: Modify the Number of Days

In the events.php file, find the following line of code:

 $to = date('Y-m-d', strtotime(date("d-m-Y", time()) . " + 365 day"));

Change the + 365 day value to the number of days you'd like events to be displayed for. You can do this in the WordPress admin panel using the plugin editor:

wp-admin/plugin-editor.php?file=aboss_wordpress-master%2Flib%2Faboss%2Fapi%2Fevents.php&plugin=aboss_wordpress-master%2Faboss_events.php

Step 3: Save and Load

After making the necessary changes, save the file. It may take some time for the updates to take effect, and the events may take a while to load on your website.

For more information on how to display events on an artist's website, check out this article.

Did this answer your question?