• Resolved Jason Ryan

    (@viablethought)


    Hello –

    I have a simple block that I am using to test this plugin:

    [time-restrict-repeat type="weekly" onday="Wednesday" offday="Wednesday" ontime="18:20:00" offime="18:24:59"]
    <h3 style="color: red; text-align: center;">Registration for Today’s Webinar is Closed</h3>
    <p style="text-align: center;">Please check back after 10:00AM to register for our next Thursday session. Thank You!</p>
    [/time-restrict-repeat]

    The time period has passed, yet that block is still showing. Any insight would be appreciated. Thanks.

    • This topic was modified 6 years, 9 months ago by Jason Ryan.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    Good morning,

    At a glance, your shortcode looks good – no reason it shouldn’t work as expected. When content shows up which should be hidden (or vice versa), the reason is usually caching. Do you have caching installed on your site, or at the host level? It may even just be your browser caching the page. Try a hard refresh. If you have caching in place, you would need to specifically exclude the page with the shortcode on it in order to get expected results with the shortcode.

    Thread Starter Jason Ryan

    (@viablethought)

    @thewanderingbrit

    Thanks for taking the time to respond. After reading other’s posts, I saw that caching was an issue and we do have Cloudflare enabled, however we had flushed cache everywhere including browsers and still couldn’t get it to work as intended. Instead, we wrote some jQuery to do what we needed for the time being until we can revisit the plugin and test it on a dev site that doesn’t have Cloudflare enabled.

    Thanks again.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Thanks for taking the time to respond and providing an update. If you do get around to testing it on a dev site, let me know how that goes.

    Thanks

    Thread Starter Jason Ryan

    (@viablethought)

    @thewanderingbrit

    Will do! Thanks again.

    Good morning,
    I have the same problem with Wednesday.
    Perhaps the problem is only related to the day of Wednesday.
    Can you please tell me how to solve? Can we expect a new release?
    Thanks and congratulations for the job.

    Raffaele

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hi Raffaele,

    I’m afraid that if the problem relates only to Wednesday, then the plugin is not the issue, because the plugin sends the days through PHP’s date() and strtotime() functions rather than trying to interpret the days itself. I would double check your spelling, just to be sure.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn’t seem to be working’ is closed to new replies.