Skip to main content

Shortcode Reference

Complete reference for all available shortcodes.

Date Shortcodes

[lre_next_date]

Displays the full formatted date of the next occurrence.

[lre_next_date]
[lre_next_date id="123"]
[lre_next_date format="F j, Y"]
AttributeDescriptionDefault
idPost IDCurrent post
formatPHP date formatPlugin setting

Output: "January 15, 2026"


[lre_next_day]

Displays just the day number.

[lre_next_day]
[lre_next_day leading_zero="true"]
AttributeDescriptionDefault
idPost IDCurrent post
leading_zeroInclude leading zerofalse

Output: "15" or "05"


[lre_next_month]

Displays the month name.

[lre_next_month]
[lre_next_month format="short"]
[lre_next_month format="number"]
AttributeDescriptionDefault
idPost IDCurrent post
formatfull, short, or numberfull

Output: "January", "Jan", or "1"


[lre_next_year]

Displays the year.

[lre_next_year]
[lre_next_year short="true"]
AttributeDescriptionDefault
idPost IDCurrent post
shortTwo-digit yearfalse

Output: "2026" or "26"


[lre_next_weekday]

Displays the weekday name.

[lre_next_weekday]
[lre_next_weekday format="short"]
AttributeDescriptionDefault
idPost IDCurrent post
formatfull or shortfull

Output: "Saturday" or "Sat"


[lre_next_time]

Displays the event time.

[lre_next_time]
[lre_next_time format="H:i"]
AttributeDescriptionDefault
idPost IDCurrent post
formatPHP time formatg:i a

Output: "2:00 pm" or "14:00"


Information Shortcodes

[lre_pattern]

Displays a human-readable recurrence pattern description.

[lre_pattern]
[lre_pattern id="123"]
AttributeDescriptionDefault
idPost IDCurrent post

Output: "Every Tuesday", "First Monday of every month", etc.


[lre_is_recurring]

Returns "1" if the event has recurrence enabled, "0" if not.

[lre_is_recurring]

Useful for conditional display logic.


[lre_occurrences]

Displays a list of upcoming occurrences.

[lre_occurrences]
[lre_occurrences limit="5"]
[lre_occurrences limit="3" format="D, M j"]
[lre_occurrences before="<li>" after="</li>" sep=""]
AttributeDescriptionDefault
idPost IDCurrent post
limitMax occurrencesPlugin setting
formatDate formatj F, Y
sepSeparator", "
beforeBefore each date""
afterAfter each date""
displaylist or mini-calendarlist
show_weekdayShow day namefalse
show_timeShow timefalse
linkMake dates clickablefalse

Basic Output: "January 15, January 22, January 29"

List Output:

<li>January 15</li>
<li>January 22</li>
<li>January 29</li>

Field Shortcodes

[lre_field]

Displays a field value with override support.

[lre_field name="event_location"]
[lre_field name="event_location" id="123"]
[lre_field name="_thumbnail_id" size="medium"]
AttributeDescriptionDefault
idPost IDCurrent post
nameField name(required)
sizeImage size (for images)full

Returns the override value if one exists for the current occurrence, otherwise returns the default field value.


[lre_reschedule_note]

Displays the reschedule note for the current occurrence.

[lre_reschedule_note]

Only outputs if the current occurrence has been rescheduled and has a note.


Calendar Shortcode

[lre_calendar]

Displays an interactive calendar. See Calendar Configuration for full details.

[lre_calendar]
[lre_calendar theme="dark" height="600px"]

Add to Calendar Shortcode

[lre_add_to_calendar]

Displays the Add to Calendar button. See Add to Calendar for full details.

[lre_add_to_calendar]
[lre_add_to_calendar label="Save Event" calendars="Google,Apple"]

Filter Shortcodes

For themes not using Bricks or Elementor:

[lre_filter_date]

Date preset filter.

[lre_filter_date]
[lre_filter_date style="dropdown"]

[lre_filter_date_range]

Date range picker filter.

[lre_filter_date_range]

[lre_filter_taxonomy]

Taxonomy filter.

[lre_filter_taxonomy taxonomy="event_category"]
[lre_filter_taxonomy taxonomy="event_category" style="checkboxes"]

Search filter.

[lre_filter_search]
[lre_filter_search placeholder="Search events..."]

[lre_filter_reset]

Reset all filters button.

[lre_filter_reset]
[lre_filter_reset label="Clear Filters"]

Using Shortcodes in Templates

PHP Templates

<?php echo do_shortcode('[lre_next_date]'); ?>

With Current Post Context

When used in The Loop or single templates, shortcodes automatically use the current post.

With Specific Post

[lre_next_date id="123"]

With URL Parameter Context

On pages accessed with ?lre_date=YYYY-MM-DD, shortcodes use that occurrence's context for override values.