• Resolved officezen

    (@officezen)


    Content A is to be hidden at the end of June and Content B is to be shown as of July 1st.

    Today is July 1st and it still shows Content A and not B.

    [time-restrict-repeat type=”annually” onmonth=”June” ondate=”01″ offmonth=”July” offdate=”1″]Content A[/time-restrict-repeat]

    [time-restrict-repeat type=”annually” onmonth=”July” ondate=”01″ offmonth=”August” offdate=”1″]Content B[/time-restrict-repeat]

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

    (@thewanderingbrit)

    Hi there,

    The way you’ve written your shortcode for Content A, it will appear on July 1 and turn off for July 2. The off date should actually be June 30th. Since no offtime is specified, the shortcode assumes 23:59:59 (the end of the day), so you want your content to expire at the end of 6/30, not the end of 7/1.

    Thanks

    Thread Starter officezen

    (@officezen)

    [time-restrict-repeat type=”annually” onmonth=”August” ondate=”01″ offmonth=”August” offdate=”31″] Content A [/custom_button][/time-restrict-repeat]

    [time-restrict-repeat type=”annually” onmonth=”September” ondate=”01″ offmonth=”September” offdate=”30″]Content B [/time-restrict-repeat]

    Today is September 1st and Content A is hidden as intended, but Content B does not appear.

    Thread Starter officezen

    (@officezen)

    NVM, I guess ondate cannot have the “0” in the front.

    Changing it to ondate=”1″ fixed it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show / Hide Months’ is closed to new replies.