• Hi,

    I’ve just installed the plugin and tried to use it out of the box – but having some issues. I’ve set to V2, chose the post types I want to use it on and enabled the option to work for standard WordPress galleries. However it would not work, jumped into the code and found that ‘in_the_loop’ in if ( is_singular() && in_the_loop() && is_main_query() ) { is preventing the inline js from getting added to the page as in_the_loop == 0.

    We are using WP Bedrock & Timber a little different to a standard installation

    Great plugin other than this, but just thought I’d provide this feedback incase anyone else is having the same issue.

    Kind regards,

    Thomas Brentnall

The topic ‘in_the_loop() prevents plugin from working’ is closed to new replies.