• Resolved Magic-Komplex

    (@magic-komplex)


    Hi,
    I’m not sure if I just build in a logical mistake which I’m blind to, or what else could cause this problem. I have the following shortcode:

    [time-restrict on="2017-10-06" off="2017-26-06" else="Schulmaterial kann zur Zeit nicht bestellt werden."]
    [caldera_form id="CF591eadc32b6c6"]
    [/time-restrict]
     
    [time-restrict on="2017-10-05" off="2017-26-05" else="Hygieneartikel können zur Zeit nicht bestellt werden."]
    [caldera_form id="CF591eb1dbd549e"]
    [/time-restrict]

    If I get everything right, the first shortcode should follow the else-condition, which it does, and the second shortcode should show a form right now, but it also follows the else-condition.

    What am I doing wrong? Thanks in advance for any help.

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

    (@thewanderingbrit)

    It seems that your date format is incorrect. Try YYYY-MM-DD instead of YYYY-DD-MM 🙂

    Thread Starter Magic-Komplex

    (@magic-komplex)

    Oh such a stupid mistake, thank you so much! It’s working now. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘shortcode isn’t working as expected’ is closed to new replies.