lazy-load-for-videos
lazy-load-for-videos copied to clipboard
Not working when embed code is in PHP file
It's working everywhere else on my site. But I can't get it to function with a video embedded through a PHP template file. I used oembed and the [embed] shortcode, both on the linked official Wordpress Embed page, and either the URL of the YouTube is displayed or nothing at all is displayed.
Same problem here with a custom field inside a loop of videos. Probably the script fires before the loop outside the while (have_posts()) .