Viewing 1 replies (of 1 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi!

    NelioEFI only uses the first image that has been inserted using an img tag. In other words, this works:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    
    <img src="http://example.com/image.jpg" />
    
    Vivamus tristique et libero a lacinia. Praesent ac elit consequat, vulputate nisi et, tincidunt diam.

    This doesn’t:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    
    http://example.com/image.jpg
    
    Vivamus tristique et libero a lacinia. Praesent ac elit consequat, vulputate nisi et, tincidunt diam.

    If you want to fix this issue, you’ll have to manually tweak the plugin. In particular, you’ll have to edit includes/nelio-efi-main.php, line 67, and change it from:

    preg_match(
      '/<img [^>]*src="([^"]*)"/i',
      $post->post_content,
      $matches
    );

    to:

    preg_match(
      '/<img [^>]*src="([^"]*)"/i',
      apply_filters( 'the_content', $post->post_content ),
      $matches
    );
Viewing 1 replies (of 1 total)

The topic ‘Not work with Embed Image Links’ is closed to new replies.