Support » Plugin: Weekly Schedule » Not able to call weekly schedules using do_shortcode

  • Resolved doubleedesign


    Hi there,

    Is there any particular reason why this plugin would not work using do_shortcode in the template, rather than inserting the shortcode into the content?

    When I try to call my schedule using do_shortcode, it is visible but I get a JavaScript error for qTip:

    Uncaught TypeError: jQuery(...).qtip is not a function

    On one page, I have two schedules and oddly, I can call as many as I like using do_shortcode and they will work properly as long as there is at least one called within the content. But if I use do_shortcode only, none will show their tooltips and the JavaScript error occurs.

    It would be great to be able to use this using a template tag or do_shortcode, as often I don’t want or need to otherwise teach clients about shortcodes, and it’s nice for them if it “just works” on the relevant page template.

    Thanks for your time!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yannick Lefebvre


    The reason is that Weekly Schedule checks to see if the shortcode is part of the content and only loads scripts when it finds it. Calling do_shortcode bypasses that and none of the required scripts get loaded.

    That being said, I learned of a new way to load scripts for shortcodes that should work very well here. I just pushed out version 2.9.7 to switch to this new method. Please update and let me know if that works better for the project you are working on.

    Please consider donating to support this plugin’s development.

    Thread Starter doubleedesign


    Beautiful! Thank you so much for the speedy solution! 🙂

    Plugin Author Yannick Lefebvre


    I had to roll back the changes I made as they caused display trouble to some users and I am leaving for a 2-week trip this week with no time to work on this more soon.

    If the version I pushed for you a couple of days ago works, stay on it for now and do not upgrade. I will let you know when I have figured out a way to keep everything working with changes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not able to call weekly schedules using do_shortcode’ is closed to new replies.