Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author kevinweber

    (@kevinweber)

    Hi,
    this plugin does not support videos that are embedded as <iframe> code.
    But it’s possible to filter a custom field with an oembed filter so that the custom field’s content is if the link was inserted into the text editor.

    To make Lazy Load for Videos work with TablePress, I added this code:

    /**
     * Enable oEmbed dataparse for WordPress plugin "TablePress"
     */
    global $wp_embed;
    add_filter( 'tablepress_cell_content', array( $wp_embed, 'run_shortcode' ), 12 );
    add_filter( 'tablepress_cell_content', array( $wp_embed, 'autoembed'), 12 );

    It might be possible to adapt this code to your belongings.

    By the way, I’ve a tutorial on my (very long) to-do list that will explain theme authors how to make everything compatible with Lazy Load for Videos.

    Best regards,

    Kevin

    Thread Starter ToreKarlsson

    (@torekarlsson)

    Hello!

    Thank you for your prompt reply, I got it working!

    Unfortunately I ran in to more problems… My theme uses infinity scroll, is their some way to make this plugin work with infinity scroll? Can I make a call to the plugin so it activates it self after the content have been loaded?

    Best regards!

    Plugin Author kevinweber

    (@kevinweber)

    I’ve tested the plugin with infinite scroll plugins and it should work …
    Have you already clicked the “Update Posts” button on the plugin’s options panel? This should ensure that videos in older posts are also lazy loaded.

    Thread Starter ToreKarlsson

    (@torekarlsson)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use embedcode’ is closed to new replies.