Forum Replies Created

Viewing 15 replies - 166 through 180 (of 220 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    No I’m afraid not. That would require some AJAX implementation of this same idea. This plugin only evaluates the current time when the page is loaded and displays content accordingly.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hi Ray,

    Yes, I believe so. If you could elaborate a little more (with examples) of what you want to show and when, I can guide you through that.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hi Jarrod,

    I don’t know what the other thread is that you’re referring to, but the plugin is working as intended to the best of my knowledge. What kind of issue are you having?

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Thanks Pieter. Glad it’s meeting a need for you ??

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hmmm, that one’s got me baffled. Can you change the test to the following so that I can troubleshoot further:

    [time-restrict-repeat type="weekly" onday="sunday" offday="sunday" ontime="10:25:00" offtime="12:00:00"]1[/time-restrict-repeat][time-restrict-repeat type="weekly" onday="sunday" offday="wednesday" ontime="12:00:00" offtime="18:55:00"]2[/time-restrict-repeat][time-restrict-repeat type="weekly" onday="wednesday" offday="wednesday" ontime="18:55:00" offtime="20:30:00"]3[/time-restrict-repeat][time-restrict-repeat type="weekly" onday="wednesday" offday="sunday" ontime="20:30:00" offtime="10:25:00"]4[/time-restrict-repeat]

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hmm, so it’s always showing one slide A and then another instance of the slider alternates correctly between slide A and slide B? It sounds like you’re calling an extra instance of Slide A somewhere that isn’t regulated by the shortcode time restrictions. Another option is to add these shortcodes to a test page and change Slide A and Slide B for “shortcode 1”, “shortcode 2” etc. so that you can identify which one is showing up when it shouldn’t be.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hmm, well, in the eyes of the plugin, there’s no difference between my code and yours (except the times), but at any rate, I’m glad that you got it working in the end.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    This is very much outside the realm of what this plugin does and what it is intended to do, but a custom plugin could certainly do what you’re trying to achieve.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    This is not an issue with the plugin, as the plugin does not make any distinction between what device the user is using. This is more likely a result of a caching plugin or your mobile browser caching the page.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Sure thing. Something like this should do it:

    [time-restrict-repeat type="weekly" onday="sunday" offday="sunday" ontime="10:25:00" offtime="12:40:00"]Slider B[/time-restrict-repeat][time-restrict-repeat type="weekly" onday="sunday" offday="wednesday" ontime="12:40:00" offtime="18:45:00"]Slider A[/time-restrict-repeat][time-restrict-repeat type="weekly" onday="wednesday" offday="wednesday" ontime="18:45:00" offtime="20:40:00"]Slider B[/time-restrict-repeat][time-restrict-repeat type="weekly" onday="wednesday" offday="sunday" ontime="20:40:00" offtime="10:25:00"]Slider A[/time-restrict-repeat]

    Plugin Author Dave Clements

    (@thewanderingbrit)

    You can hack the plugin very simply. Look for this line

    $args = array( 'numberposts' => $soupnumber, 'no_paging' => '1', 'post_status' => $posttype, 'order' => 'ASC', 'orderby' => $postorder, 'ignore_sticky_posts' => '1', 'category' => $soup_cat);

    and change it to

    $args = array( 'numberposts' => $soupnumber, 'no_paging' => '1', 'post_status' => $posttype, 'order' => 'ASC', 'orderby' => $postorder, 'ignore_sticky_posts' => '1', 'category' => $soup_cat, 'post_type' => 'page' );

    I’ll consider building this into a future version of the plugin. I have created an issue in Github to track this request if you want to follow along.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Actually, the plugin does neither of those things. The plugin uses the time from WordPress, so it takes the time zone configured in Settings > General to determine the time to show or hide content. Hope that helps clear things up.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Not at all. In and of itself it has zero impact on SEO.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    m1ha1,

    In future, please open your open forum thread so that we can keep separate issues separate.

    In version 2.0, I did deprecate the old form of shortcode which you’re using above, but it should certainly still work. Since we’re going through troubleshooting it anyway, can you try the new style of shortcode, which would take the following form:

    [time-restrict on="2015-02-13"]AAA[/time-restrict]

    Also note that if this is the actual code that you used on your site, then it is correct that it’s not showing, because you’re saying to only show “AAA” on February 13th. It’s currently the 12th.

    Plugin Author Dave Clements

    (@thewanderingbrit)

    Hi Mirek,

    A few questions:

    • Are you using this shortcode inside a post/page, or are you trying to use it in a widget?
    • You say that it does nothing. Does that mean that nothing displays, or it just outputs the shortcode directly onto the page?
    • This plugin uses the time settings from your WordPress settings (Settings > General). Could it be that your time settings are incorrect and when you’re trying to view the content, it’s being hidden because the time it should be showing doesn’t match up with the actual time?

    Thanks

Viewing 15 replies - 166 through 180 (of 220 total)