Skip to main content

[bec_dates]

Outputs a simple readable date range built from bec_checkin and bec_checkout in the URL.


Where to put it

Page headers, sticky summaries, confirmation banners—anywhere you already carry search parameters forward.


Attributes

None. Behaviour can be customised by developers via filters (bec_shortcode_dates_format).


Examples

[bec_dates]

Visitor output

When search context is incomplete the shortcode prints nothing.

Otherwise visitors typically see a paragraph like:

Mon Jun 1 → Mon Jun 8

(Locale formatting follows WordPress settings.)

bec_dates front-end


CSS hooks

  • bec-shortcode-dates

Tips

Use [bec_booking_summary] instead when you need dates plus guests and pricing—the summary includes richer readouts.