Dave Clements
Forum Replies Created
-
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] schedule lagging / triggering laterYou haven’t mentioned browser caching. Are you eliminating the browser cache as a potential source of the delay?
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] schedule lagging / triggering laterIf you are confident in the timezone settings, then it sounds like it must be down to caching. When you load the pages, can you eliminate caching as a source of the issue?
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Show content according to days of the monthYes, you can do this.
E.g.
[time-restrict-repeat type="monthly" ondate="01" offdate="10"] Content xxx01 [/time-restrict-repeat] [time-restrict-repeat type="monthly" ondate="11" offdate="20"] yyy02 content [/time-restrict-repeat] [time-restrict-repeat type="monthly" ondate="21" offdate="31"] Content aaa03 [/time-restrict-repeat]
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] OutstandingExcellent! I’m so glad that it works well for you. Thanks for coming by and writing a review.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Lunch menu Monday – FridayYou would insert the shortcode around the content, wherever it appears. The shortcode would look like the following for your given conditions:
[time-restrict-repeat type="daily" ontime="11:00:00" offtime="15:00:00"] [time-restrict-repeat-2 type="weekly" onday="Monday" offday="Friday"] Here's our lunch menu [/time-restrict-repeat-2] [/time-restrict-repeat]
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Use with Post DateSo, if this applies to multiple posts, then you must be adding this shortcode into a theme template? If so, why not just wrap
do_shortcode()
in a conditional that checks the post date?Tony,
Although I haven’t updated the plugin to say so, the plugin does work with recent versions of WordPress.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] what’s wrong?Yes, because you want the content to turn on at 10am on Monday and then off at 6pm on Monday.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] what’s wrong?OK, so you want to do it with three separate shortcodes, like this:
[time-restrict-repeat type="weekly" onday="Monday" offday="Monday" ontime="10:00:00" offtime="18:00:00"][contact-form-7 id=”34″ title=”XXXXXXXXX”][/time-restrict-repeat][time-restrict-repeat type="weekly" onday="Wednesday" offday="Wednesday" ontime="10:00:00" offtime="18:00:00"][contact-form-7 id=”34″ title=”XXXXXXXXX”][/time-restrict-repeat][time-restrict-repeat type="weekly" onday="Friday" offday="Friday" ontime="10:00:00" offtime="18:00:00"][contact-form-7 id=”34″ title=”XXXXXXXXX”][/time-restrict-repeat]
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Multiple Schedules on one pageThat’s correct. With the way you’ve set up the codes, that would be expected. Code 1 will show from 8:45 am on Monday until 11 am on Friday. Code 2 will show from 11 am on Monday until 8:45 am on Friday. You need to look at the readme and find the instructions for nesting shortcodes, because you’re wanting to do a daily schedule (M-F, 8:45-11am) on a weekly recurring basis.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Non consecutive days?Don’t add paragraphs between sequential paragraphs. Put the shortcodes end to end, so the final closing square bracket of one short code (
]
) is immediately followed by the opening square bracket of the next (‘[‘).Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Non consecutive days?In your case, ignore using the
else
attribute, and instead, create a bunch of shortcodes on a weekly recurring basis, that alternate what they show. For instance, One that runs on Monday that shows Y, followed by one which runs on Tuesdays that shows X, then another on Wednesdays that show Y, etc.Sure. Set it up to show your open hours and in that same shortcode, use the
else
attribute to say “We are closed”Forum: Plugins
In reply to: [Show/Hide Content at Set Time] How to apply to an entire page or menuIt’s possible to build, but it is not possible in the plugin as it exists right now. Could be something to develop in future.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] PHP 7.4Hey,
I haven’t tested it yet. I have no reason to suspect that it doesn’t, but I’d certainly welcome anyone’s actual experience with it.
Thanks