Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    Please post the shortcodes you are using to try and display the content.

    Thread Starter cdepa

    (@cdepa)

    [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Sunday” ontime=”00:01:01″ offtime=”09:59:59″]
    <h3>The Library is currently CLOSED. We’ll open today at 10am.</h3>
    [/time-restrict-repeat]
    [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Sunday” ontime=”10:00:00″ offtime=”20:59:59″]
    <h3>The Library is open now until 9pm today.</h3>
    [/time-restrict-repeat]
    [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Thursday” ontime=”21:00:00″ offtime=”23:59:59″]
    <h3>The Library is currently CLOSED. We’ll reopen tomorrow at 10am.</h3>
    [/time-restrict-repeat]

    Thanks, Dave!!

    • This reply was modified 7 years, 9 months ago by cdepa.
    Plugin Author Dave Clements

    (@thewanderingbrit)

    The start date for each is a Monday, meaning that on Mondays, all 3 messages will show. In fact, all three messages will show until the third message turns off on Thursday at midnight.

    Thread Starter cdepa

    (@cdepa)

    So is it actually possible to accomplish what I’d like to do? Different start and end times for different messages in a single day?

    Thanks for your time and help, Dave! It’s a great plugin!

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Oh for sure. It’s not entirely clear what your intended schedule is, but, to have three different messages in a single day, you could do something like this:

    [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”00:01:01″ offtime=”09:59:59″]
    <h3>The Library is currently CLOSED. We’ll open today at 10am.</h3>
    [/time-restrict-repeat]
    [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”10:00:00″ offtime=”20:59:59″]
    <h3>The Library is open now until 9pm today.</h3>
    [/time-restrict-repeat]
    [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”21:00:00″ offtime=”23:59:59″]
    <h3>The Library is currently CLOSED. We’ll reopen tomorrow at 10am.</h3>
    [/time-restrict-repeat]

    That will show all the messages for a Monday. You can repeat that process for different days if the times differ. Or, if the same times apply to several consecutive days, you can “nest” the shortcodes. There’s some examples of this on the main plugin page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Time parameters not working’ is closed to new replies.