Dave Clements
Forum Replies Created
-
The very first example on the plugin description page is exactly what you’re looking for. It has two messages: 1 for while the giveaway is going on and another for once it is over.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Using in custom templateThis can be achieved by using the do_shortcode function in your template file. Essentially, wherever you want it to appear in the template, you’ll have some code that looks something like this:
<?php echo do_shortcode('[time-restrict off="2015-01-01"]Please enter our competition[/time-restrict] [time-restrict on="2015-01-01"]Sorry, this competition has closed[/time-restrict]'); ?>
Forum: Plugins
In reply to: [Seriously Simple Podcasting] Audio not playing on WP EngineI too had the same issue, got in touch with WP Engine and it was nginx blocking the mp3 filetype. They added a custom rule for my install and that took care of it.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] lots of blank linesBut I’m not sure that that’s the issue, since the HTML being outputted is
<br>
tags, not table tags like<tr>, <td>
etc. At any rate, avoiding tables is probably a good idea anyway!Forum: Plugins
In reply to: [Show/Hide Content at Set Time] lots of blank linesHi Russ,
Looking at the source code of your page, all of these blank lines are showing up before the table even begins, so something else must be adding these blank lines ahead of the table. Here’s a look at the page with the source code visible, showing lots of
<br>
tags ahead of the table: https://cloudup.com/cx_aj3bY_TVForum: Plugins
In reply to: [Show/Hide Content at Set Time] Is Code Text Visible in Source Code?Hi there,
No, if the content is hidden, it is not shown at all in the source code. It will only be visible (both on the site and in the source code) when your shortcode tells it.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] multiple conditionsHi Charles,
Yes you can do this with this plugin. See the last example on the description tab to see how to show a message during business hours. Then add a different shortcode (taking the same format) to cover weekdays while the store is closed and lastly, a final shortcode to show content over the weekend (there’s also an example of this on the description tab).
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Show content during night or dayYes, you would just use a daily repeating schedule. Look at the first example under “Usage – repeating schedule” on the description tab.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Help with codesPhilip,
In future, you should start your own thread, but in general:
`[time-restrict-repeat type=”daily” ontime=”09:00:00″ offtime=”21:30:00″]
[time-restrict-repeat-2 type=”weekly” onday=”Monday” offday=”Friday”]
Our restaurant is currently open
[/time-restrict-repeat-2]
[/time-restrict-repeat]
[time-restrict-repeat type=”weekly” onday=”Saturday” offday=”Saturday” ontime=”09:00:00″ offtime=”20:00:00″]
Our restaurant is currently open
[/time-restrict-repeat]Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Show/Hide Contact Form 7What is the shortcode that you are trying to use?
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Very good pluginThanks for your review. The plugin uses WordPress’ own timezone setting so you should base your timing on your site’s local time.
I think that a separate timezone setting would be unnecessary for most people and would just introduce complexity that doesn’t need to be there. Thanks for the suggestion though!
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Now what?You just need to generate the shortcodes for when you want to show and hide content.
Look at the Description tab for examples on how to show and hide content whether as a one-off or as a recurring schedule.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] CachingThat will inevitably happen I’m afraid. In order to overcome this, you’d have to not use your cache on pages where you need to show or hide content based on the current time.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Timing on Same Day doesn't workHi,
This shortcode should still work with your situation. Can you post an example URL of where you have the content that you’re trying to hide and tell me what part of the content should be hidden and what shortcode you’re currently using?
Thanks
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Show/Hide Content at Set Time – YouTube play?Look at the Description tab for examples on how to show and hide content whether as a one-off or as a recurring schedule.