Radio Station
[resolved] dj-coming-up-widget crashes the page (8 posts)

  1. biggee71
    Posted 1 year ago #


    Clean install of WP 3.9.1, un-modified Twenty Eleven theme, no other plug-ins activated.

    The sidebar widget to display the upcoming dj's works fine, but if I try to display it using the shortcode [dj-coming-up-widget] on the same page as any other calls to the plug in it prevents anything else from displaying.

    For example :

    If I have [dj-widget] & [master-schedule time="24"] on a page it all works fine.

    However, If I add the other widget : [dj-widget] [dj-coming-up-widget] [master-schedule time="24"] - nothing displays.

    The upcoming widget seems to be crashing the plug-in.

    I've even tried to call the shortcode with php <?php do_shortcode('[dj-coming-up-widget]'); ?> but the result is the same.

    Any suggestions?



  2. biggee71
    Posted 1 year ago #

    Should also add that I tried displaying the up coming widget on a clean page with nothing else and it still doesn't work.

    Must be an error somewhere preventing that function from working.

  3. biggee71
    Posted 1 year ago #

    Thought I had fixed it but the problem still persists..

  4. biggee71
    Posted 1 year ago #

    Sorry, meant to say that the theme was TwentyTwelve, not TwentyEleven ;)

  5. biggee71
    Posted 1 year ago #

    Ok if anybody else is having the same problem I have figured out a workaround.

    The shortcode doesn't work with WP 3.9.1 full stop, but the widget does!

    Widgets only work in sidebars but I don't use sidebars on my site, so below you will find a way that will allow you to put the widget anywhere on your site that you choose.

    Basically you just have to register a new sidebar in your functions.php file, drop the widget in your new sidebar & configure it, create a new page template that loads the widget then create a new page.

    Step by Step :

    1) Open functions.php - find the following function - function twentytwelve_widgets_init() (this will be slightly different depending on which theme you are using - i'm using TwentyTwelve) and add the following code right before the closing curly bracket :

    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h4>',
    'after_title' => '</h4>',

    2) Go to Appearance > Widgets. Then drag and drop the Radio Station: Upcoming DJ On-Air widget into your new sidebar "mysidebar". Configure it how you wish and save it.

    3) Create a new page template file (if you don't know how to do this click here) and then add the following code where you wish the widget to appear :

    <div><?php dynamic_sidebar( 'mysidebar' ); ?></div>

    4) Create a new Page and assign the new page template that you created in Step 3 to it from the dropdown menu on the right.


    Obviously you can just drop that sidebar code wherever you want, it doesn't have to be done on it's own separate page, but I've just explained it like this to make it easy to understand.

    Hope somebody finds it useful.

  6. Nikki Blight
    Plugin Author

    Posted 1 year ago #

    An easier solution would be for me to just fix the shortcode I broke in the last update. ;)

    New release coming up shortly.

  7. Grant2013
    Posted 1 year ago #

    Haha thanks Nikki but I've already gone to the dark side and started hacking away at it.

    I probably should have waited ;)

  8. Grant2013
    Posted 1 year ago #

    Oh I signed in with a different wp account.

    When I tried to post originally it had no memory of my old account and I couldn't remember it either. This time the login field was magically populated with my old username info?

    Technology eh!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Radio Station
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic