Support » Plugin: Show/Hide Content at Set Time » Time Interval. Shortcode

  • Resolved thiagosales

    (@thiagosales)


    Hello. I have difficulty with the plugin. I want to make two views by time:

    09:00 am / 17:00 pm – TEXT 1

    17:01 pm / 08:59 am – TEXT 2

    Saturday and Sunday TEXT 2 anytime

    What does shortcode look like?

    Thank you.

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

    (@thewanderingbrit)

    Try something like this:

    [time-restrict-repeat type="daily" ontime="09:00:00" offtime="17:00:00"]
    [time-restrict-repeat-2 type="weekly" onday="Monday" offday="Friday"]
    TEXT 1
    [/time-restrict-repeat-2]
    [/time-restrict-repeat][time-restrict-repeat type="daily" ontime="17:00:00" offtime="09:00:00"]
    [time-restrict-repeat-2 type="weekly" onday="Sunday" offday="Thursday"]
    TEXT 2
    [/time-restrict-repeat-2]
    [/time-restrict-repeat][time-restrict-repeat type="weekly" onday="Friday" offday="Monday" ontime="17:00:00" offtime="09:00:00"]
    TEXT 2
    [/time-restrict-repeat]
    • This reply was modified 3 years, 11 months ago by Dave Clements.
Viewing 1 replies (of 1 total)
  • The topic ‘Time Interval. Shortcode’ is closed to new replies.