• Resolved 1f2ns

    (@1f2ns)


    I have a website that I wish to show an order form for each day of the week (different form for each day). I am showing “showing” and “hiding” the form between operating hours (with a “sorry we’re closed” before/after operation hours for the restaurant).

    Here is one instance of the code I currently have:

    <!–– —————————————
    FRIDAY
    ————————————— –>

    <!–– closed: after midnight–>
    [timed-content-server show=”Friday 00:00:00 America/Detroit” hide=”Friday 09:59:59 America/Detroit”]<center><h2>Sorry, we’re closed right now</h2></center>[/timed-content-server]

    <!–– open: 10:00am to 10:15pm–>
    [timed-content-server show=”Friday 10:00:00 America/Detroit” hide=”Friday 22:15:59 America/Detroit”][gravityform id=”6″ title=”false” description=”false” ajax=”false”][/timed-content-server]

    <!–– closed: 10:16pm to 11:59pm–>
    [timed-content-server show=”Friday 22:16:00 America/Detroit” hide=”Friday 23:59:59 America/Detroit”]<center><h2>Sorry, we’re closed right now</h2></center>[/timed-content-server]

    This is the DEBUG ERROR:
    https://prntscr.com/myjp2g

    How can I show/hide on a weekday basis?
    “monday this week” didn’t work either.

    Any help is muchly appreciated.
    I have hit a dead end with this one unfortunately.

Viewing 1 replies (of 1 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    The date/time values in a shortcode must be a specific date in ISO style format. Using weekday names will not work.

    You have to create a rule which repeats every week and applies to specific week days and then use that rule (`[timed-content-rule id=”…”] … [/timed-content-rule]) instead of a date/time.

Viewing 1 replies (of 1 total)
  • The topic ‘Server Side Show/Hide “monday this week”’ is closed to new replies.