Skip Navigation

[Resolved] Conditional statement to return result if between certain times of day

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.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 8 months ago.

Assisted by: Christopher Amirian.


Hi there!

I have a Custom Post Content Template. I want to ONLY show certain information between school hours i.e. 8:00am and 4:00pm.

How can I create a [wpv-conditional if=""] statment to do this? Will it require a custom function or can I use the "time" built in funcion?

Many thanks


Christopher Amirian

Languages: English (English )

Hi there,

It is possible with custom coding and the conditional shortcode (not the block).

I suggest that you check the answer below to know how to do that:

Please consider that this is a custom code request and we are unable to give the exact code for your user-case, and the answer above is an attempt to give you guidance on how to do it yourself.

Thank you.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.