• I have the Breaking News Bar installed but I want it to run 24/7 until I manually remove..

    How is this done?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob Martella

    (@arenapigskin)

    Technically, this isn’t possible as the upper limit is 48 hours at the moment. However, you’ve got me thinking about adding a filter that allows you to either use the time limit defined in the breaking news CPT or leave it up forever. Hopefully will get that done before the weekend is up. Sorry about that.

    Thread Starter puma75

    (@puma75)

    Thank you.. This is great..

    Our site will be getting some serious press and this banner is Imperative to the site..

    Perhaps a new entry into the Drop Down.. = Never which bypasses logic..

    Just thninking outload.. thank you for the hard work!

    Plugin Author Jacob Martella

    (@arenapigskin)

    So at the moment, I’ve created a filter for it that can keep it up forever or use the time limit. To bypass the time limit, just add the following code:

    function theme_slug_news_banner_limit( $default ) {
        return false;
    }
    add_filter( 'jm_breaking_news_use_time_limit', 'theme_slug_news_banner_limit' );

    Unfortunately, my repo for the plugin locally is quite a mess, so you’re probably better off copying the code from the gist I’ve linked to below and replacing the code in the jm-breaking-news.php file inside the plugin. Let me know if you need any help. Sorry about the delay!

    https://gist.github.com/ViewFromTheBox/28c4e6dd6bfbe5141c759f74f189e802

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Increase the time to Infinite’ is closed to new replies.