Show Calendar Items Every Year
This snippet modifies the JetEngine Calendar widget to display events annually on the same date, ignoring the original year. It works with custom queries named with the --each-year-{meta_field} pattern and repeats items each year.
Specifications
Show Calendar Items Every Year
6 January, 2026
-
Plugin
-
Category
-
Programming languages
Installing Instruction
How to Add Snippets into the functions.php File of the Active Child Theme
- Copy the required code snippet to your clipboard.
- Navigate to WordPress Dashboard > Appearance > Theme File Editor.
- Click the functions.php tab to open the file.
- Paste the code snippet below the existing code in the Selected file content: area.
- Click the "Update File" page.
Example Use Case
Use this snippet to modify the JetEngine Calendar widget so that events display every year on the same date, regardless of the year originally saved.
Applicable scenarios:
- Anniversary and recurring events: Show celebrations or reminders annually.
- Holiday or festival sites: Display fixed-date celebrations each calendar year.
- Event calendars: Manage yearly repeating events without manual duplication.
Specifications
Show Calendar Items Every Year
6 January, 2026
-
Plugin
-
Category
-
Programming languages