• Hi,
    I’ve been using video background on a webpage in-development where it so far has worked great on a blank front-page. I’ve run into a snag, for some (unknown) reason I can’t seem to get it to work on a page that contains a global $post; loop that fetches content from a custom post type. If I remove the loop it works immediately.

    If I use the GUI method of adding the video to page, not even the plugin JS seems to load in the page. If I go via echo do_shortcode(); I can see the JS in the footer, but still no video. I’ve tried targeting most every containing div I can think of without any luck.

    Any clue what could be causing the issue? The plugin still works fine elsewhere on the site & I’ve tested it both on a local and online server with the latest wordpress to no avail.. (as the site isn’t public yet I’m afraid I am unable to link to the site in question here)

Viewing 1 replies (of 1 total)
  • Plugin Author pushlabs

    (@pushlabs)

    Hi coruscation,

    Sorry for the late response!

    I’ve run into issues with post loops before that haven’t been closed properly. Are you executing wp_reset_postdata()?

    Additionally, the issue you are seeing with do_shortcode() is odd. If the JS files are loading that means it is initializing correctly. This is probably a container issue.

    Would you mind sharing your URL so I could take a closer look? 🙂

    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Video background breaks on post loop?’ is closed to new replies.