Dave Clements
Forum Replies Created
-
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Show different images on a weekly scheduleExcellent. Thanks for following up with your resolution.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Show different images on a weekly scheduleA few things:
- It looks as though, since this is a radio show, you’re wanting to display who’s on air now, or something similar. If so, your shortcodes need to be nested to show the same image every weekday from one time to another. The way that you have set up the bulk of these shortcodes, the image would show all week from e.g. 5AM on Monday until 6AM on Friday. Look at how to use nested shortcodes to show something for a set period every day.
- This may be just because you didn’t paste your shortcodes as “code”, but make sure that your quotes are not “curly quotes”.
- Don’t leave line breaks between sequential shortcodes. This might leave empty paragraphs
- In general though, I’m surprised that something isn’t showing up in your testing. Try playing around with the times and see if you can get it to appear at all and nail down what the cause is. Also consider if your site is caching content.
This is a guide on how to exclude certain pages from being cached in WP Super Cache. You can also define the constant DONOTCACHEPAGE as true in PHP if you’re more behind the scenes. You can also look into fragment caching if you need to get very specific.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Latest version of plugin not workingNot a problem. All’s well that ends well.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] HTML display problemWhatever is inside the shortcode will be processed as any normal content would. My guess is that the real issue is that an object tag is not an HTML tag that is permitted by WordPress. Instead, you’d have to add
<object>
as a permitted tag and that might do the job.Good luck!
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Latest version of plugin not workingI just checked your site and confirmed that the text is appearing below the slider as you expected, so I’m marking this as resolved. However, I’d be curious to know what the issue was, since the plugin hasn’t changed since then.
Thanks
Hi there,
The reason that you’re ending up with the white space is just because you’re entering each shortcode in a new paragraph, so when the content is hidden you end up with an empty paragraph. Instead, just remove the line breaks between successive shortcodes, e.g.:
[time-restrict-repeat type=”daily” ontime=”00:00:01″ offtime=”00:30:00″]TEXT A[/time-restrict-repeat][time-restrict-repeat type=”daily” ontime=”00:30:01″ offtime=”01:00:00″]TEXT B[/time-restrict-repeat][time-restrict-repeat type=”daily” ontime=”01:00:01″ offtime=”01:30:00″]TEXT A[/time-restrict-repeat][time-restrict-repeat type=”daily” ontime=”01:30:01″ offtime=”02:00:00″]TEXT B[/time-restrict-repeat]
And so on. Let me know if that doesn’t do the job ??
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Doesn’t seem to be workingHi 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.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Is it possible to set time to number of days?Hi Partha,
My plugin does not do that I’m afraid. For drip-feeding, you’re really looking at true membership plugins to do that (from my general knowledge, but without a detailed search). Of course, a (free) MailChimp account may be another way to do dripped content.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Week or day interval repeatI already replied in the GitHub issue, but the logic behind this is pretty serious and would take a lot of work. However, a library may exist than can do the bulk of the lifting. This is not currently possible with the plugin.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Doesn’t seem to be workingThanks 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
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Doesn’t seem to be workingGood 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.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] What interfered here?That’s definitely a possibility. You need to be sure not to use curly quotes in shortcodes (and code in general), as they are not recognised as quotes like you would use in code.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] What interfered here?It could definitely be a caching issue. If your site/host caches pages, the page as it was when it was cached is what will continue to be shown unless the cache gets cleared. You could always use the DONOTCACHEPAGE constant to stop a page from being cached (or your given plugin’s cache settings)
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Has worked every time for usThanks for the feedback and kind words ??