[memb_show_between]

Summary

This shortcode allows you to display content in between two specified dates.

Shortcode Examples

Display content between two dates

[memb_show_between start="2015-07-01" end="2015-07-08"]
Shown if date is between 2015-07-01 and 2015-07-08
[else_memb_show_between]
Shown if date is NOT between 2015-07-01 and 2015-07-08
[/memb_show_between]

Display from 2015-08-01 to “forever”

[memb_show_between start="2015-08-01" end=""]
Shown if date is after 2015-08-01
[else_memb_show_between]
Shown if date is BEFORE 2015-08-01
[/memb_show_between]

Display from 2015-07-01 11:00 to 2015-08-01 13:00

[memb_show_between start="2015-07-01 11:00:00" end="2015-08-01 13:00:00"]
True
[else_memb_show_between]
Failed
[/memb_show_between]

Display from 2015-07-01 11am Los Angeles time to 2015-08-01 1pm Los Angeles time

[memb_show_between start="2015-07-01 11:00:00" end="2015-09-01 13:00:00" tz="America/Los_Angeles"]
True
[else_memb_show_between]
Failed
[/memb_show_between]

Shortcode Parameters

start: Specify start date

end: Specify end date

tz: Specify time zone (format “America/Los Angeles”, “Asia/Tokyo”, “Europe/Lisbon”, etc.)

  • Was this Helpful?
  • YesNo