Dave Clements
Forum Replies Created
-
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Excellent!Hi there and thanks for the review. I’m afraid that the plugin does not currently support what you want to do and it probably won’t: that’s a fairly specific need.
Thanks
This plugin does not support timezones at the user level. Even WordPress core does not support that, however, there is an initiative to get it included in WordPress core, at which point, it may become feasible to include that in this plugin.
Thanks
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Shortcode in post titleYep, that’ll do the trick ??
Hi Pamela,
1 – The plugin uses your site’s time settings (in Settings > General)
2 – Yes, you’d set one to turn off when the other one turns on. There must be something wrong with your logic. If you want me to take a look, put your shortcodes in a gist and send it my way.Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Hide for non-logged in usersNo. Out of the box, my plugin does not do what you want it to do. You need something more like Restrict Content Pro.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] My Time Restriction is not WorkingSo in a round-about way, it sounds like you want the text to show up Mon-Fri 7:30AM to 4:30PM, right?
In that case, all you need to do is this:
[time-restrict-repeat type="weekly" onday="Monday" offday="Friday"] [time-restrict-repeat-2 type="daily" ontime="07:30:00" offtime="16:30:00"] Please be aware that we transfer all calls to our physicians’ personal cell phones after hours and on weekends. Unless you’re a current patient we ask that you respect their personal time. As you’d expect, the doctors can only provide medical advice to established patients. [/time-restrict-repeat-2] [/time-restrict-repeat]
Hi,
This feature does not currently exist. It’s something I might consider adding, but it’s probably low on the list since the same functionality is currently possible simply by entering the actual time that it should end.
@wwolf FYI, I built this feature in for you. You can use it now if you download the master version from GitHub, or you can wait for 2.5. ??
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Hide WooCommerce ProductsYes, currently, there is only support for three nested levels. I can add more, but can’t think of a situation where another level would be needed. Perhaps you can elaborate?
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Hide WooCommerce Products1) Wouldn’t this mean effectively closing your entire online store for those other hours? If so, this plugin isn’t the solution for that. However, with that said, in response to your other questions, currently you would have to create another shortcode which displays at all other times to show your “We’re closed” message, but there was recently a suggestion to allow you to set an attribute for what to display when the content is not being shown.
FYI, I created an issue for this in GitHub for it to be included in a future release.
Hi there,
I’m intrigued by your suggestion. Can you please elaborate on what you mean? Is that to say, you set up shortcodes to show something at a particular time (for example, contact details during business hours) but instead of having to create the shortcodes for the opposite condition (outside of business hours and all weekend), you can define an “else” option which says what to show when the content is not being displayed per your conditions? If so, that’s quite a good idea and I’ll add it to the roadmap.
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Brilliant and well thought out.I’m glad to hear that you’re enjoying the plugin so much.
Thanks for the recommendation. I’ll adjust the plugin docs to make this a bit clearer.
Sure. This is quite easy. Just break it down into two separate conditions:
- Show at all time from Fri 5pm until Mon 9am, and
- Show from 5pm until 9am, Mon-Fri
So, the code for that, looks something like this:
[time-restrict-repeat type="weekly" onday="Friday" offday="Monday" ontime="17:00:00" offtime="09:00:00"] Your message [/time-restrict-repeat] [time-restrict-repeat type="daily" ontime="17:00:00" offtime="09:00:00"] [time-restrict-repeat-2 type="weekly" onday="Monday" offday="Friday"] Your message [/time-restrict-repeat-2] [/time-restrict-repeat]
Let me know if that does the trick for you.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] shortcode not working with visual composerIt seems to me that this is a function of how VC processes shortcodes. It looks like shortcodes cannot cross rows. As such, this isn’t really an issue with this plugin so much as it is an issue for VC.