Skip Navigation

[Resolved] Help using Conditional Block with Date Function

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Ronald 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1525557
Screen Shot 2020-02-24 at 11.59.32 AM.png

Tell us what you are trying to do?

I see that the conditional block has the "Date Function" as one of its conditional filters.

I am wanting to show the content inside of the conditional block if it is a certain date (February 29th, 2020) or later. Basically I want to schedule the content inside the conditional block to "Go Live" after a certain day. Its a bit confusing on how to do this, and not sure if this is correct? Please see the screenshot and let me know if I got it correct

Is there any documentation that you are following?

I couldn't find any

#1525643
Screen Shot 2020-02-24 at 1.47.19 PM.png

Ive updated the conditional to show "Today" instead of "Now" and I have a test going to see if it shows up tomorrow morning. I think it will work, because when I change the date to todays date ("Today" >= "24, 03, 2020") it shows, and when I have it as tomorrows date it disappears. Fingers-crossed, I might have this figured out.

#1526859

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Ok great - Please let me know if you require further help on this 🙂

#1527001

Yep my test worked, so if you set "Today" >= a custom date of the date you want, it works like scheduling.

FYI, I would consider doing an advanced tutorial on how to use the conditional block, as I wasnt able to find much of anything. I did find info on using the conditional shortcode pre-Gutenburg, but almost nothing on the conditional block.