[memb_show_between]

This Applies to

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
9 ways to add more value to your membership site

[memb_show_between]

This Applies To

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://memberium.com/support/ or Email us at support@memberium.com.