• When I include the plugin in blog posts, it works in some posts, but not in others. seemingly randomly depending on the post, with no js or php errors.

    I’ve narrowed it down to the widgets.js script not including the iframe above the div with class = ftb-widget (which is always included on posts). I also noticed when the plugin does work, the widgets.js is included in the below the page footer, but when it doesn’t work, it’s included in the head. Could this be an issue with the wp script enqueueing system? or the shortcode system because i saw that the widgets.js is enqueued in the callback function for the shortcode.

    Hope this helps you guys figure whats going on. let me know if you need anymore details.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Graphiq

    (@graphiq)

    We appreciate you reaching out and reporting this issue! In particular the issue of widgets.js being loaded in the footer vs. header sounds interesting, our developers will take a look and let you know what we find.

    Plugin Author Graphiq

    (@graphiq)

    @bowen111 It’s most likely an issue with the script enqueue-ing system. wp_enqueue_script has an $in_footer parameter that defaults to false. In all our testing/implementations the script always loads in the footer anyway, so we’ve never experienced the issue you’re describing, but we should probably set this parameter to true anyway. We just released version 3.2.5 of the plugin which sets this parameter to true, want to test it out and see if that fixes your issue?

    If that doesn’t work, it would help if you could provide the following pieces of information:
    a) What themes and plugins are you using in your installation?
    b) Are there any other differences between the posts where things are loading / not loading.
    c) If you are able to include links to example pages, that would be useful as well (if not, no worries)

    • This reply was modified 8 years, 4 months ago by Graphiq.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plugin doesn’t always work in blog posts’ is closed to new replies.