Dave Clements
Forum Replies Created
-
Hi there,
Yes, you certainly can. You’ll need to edit your index.php file and add the following function to use the shortcode there:
<?php echo do_shortcode( '[time-restrict-repeat][/time-restrict-repeat]' ); ?>
Obviously, you’ll need to edit the shortcode to meet your needs, but the do_shortcode function is what allows you to execute a shortcode in a theme file.
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Best. Plugin. Ever.Dburr,
Thanks for taking the time to write this long, thought-out, glowing review. It makes it worthwhile to see how much time tools like this save people.
Thanks
Forum: Plugins
In reply to: [SOUP - Show off Upcoming Posts] Does not save optionsHi Daniel,
When I get a chance, I’ll look into this. I have created an issue on GitHub for you to follow along if you like: https://github.com/theukedge/soup-show-off-upcoming-posts/issues/5
Thanks
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Date and time formatting in exampleHi,
The plugin uses your site time now, not your server (as of v2.0).
Your syntax is correct and once you’ve verified your site time (check Settings > General), this should work correctly.
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Simple & EffectiveThanks Andy. Really appreciate the feedback!
Forum: Plugins
In reply to: [SOUP - Show off Upcoming Posts] Setting for Custom postsCustom post types are not currently supported natively, but if you really want to use this with a custom post type, you can “hack” line 69 and add an argument for the post type you want, like this where I have used ‘events’ as an example post type.
In the meantime, I have created this as a feature request on GitHub.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] can't seem to make this workHi there,
I confirmed your issue and the issue lies with the date format. Apparently PHP doesn’t like it (even though I show that as an example in the plugin’s description page). If you change the format to the follow, you should see that it works. The “on” attribute indicates the time at which the content will appear.
[time-restrict on="2014/10/16 09:00:00"]Webinars[/time-restrict]
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Hide accordion sectionHi,
Well, this plugin shows and hides content based on time, so unless you’re implying that the room becomes unavailable at a certain time (rather than when the room is booked), then I don’t think this plugin will meet your needs.
If it does need to get hidden based on time, you just need to wrap the content that shows that accordion section in the
[time-restrict]
shortcode, with the parameters to meet your specific needs.Not that I’m aware of. When you said it stopped working, what happened? Is it showing the content all the time? Never? Can you give an example of the shortcode that you are using so that I can test it myself?
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Working in Widget Areas?Hi there,
Yes, this plugin works in the sidebar (widgets) just the same as it would in a post/page. However, your post may not support shortcodes in sidebar widgets. See this simple plugin to enable shortcodes in widgets.
Forum: Plugins
In reply to: [SOUP - Show off Upcoming Posts] Not showing other taxonomy thank postThe WP_Query is in line 69 of soup-upcoming-posts-widget.php, so you can tweak the query there if you need. You mentioned that it is not in the post taxonomy, but posts are not a taxonomy: they are a post type. There is already an option for choosing from a different post type in the widget settings.
Forum: Plugins
In reply to: [SOUP - Show off Upcoming Posts] any plans for page viewNot at this time I’m afraid. I’ll give some consideration to it if more requests come in.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] I can use for next time bus arrival?I’m afraid not, no.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Date and time formatting in exampleThanks for the input. Not sure why the example wasn’t working for you, because it’s an allowable format for strtotime, the function used in the plugin.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Recurring weekly?With the new version coming out today, this will be possible, but not on a recurring basis. You can set up some content to show and hide at a particular time, but not repeat that, with using multiple shortcodes to account for several scenarios.