Title: Error Undefined variable
Last modified: August 31, 2016

---

# Error Undefined variable

 *  Resolved [Nguyễn Việt Anh](https://wordpress.org/support/users/alexviean/)
 * (@alexviean)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-on-143-version/)
 * Notice: Undefined variable: first_feat_image in /…../wp-content/plugins/external-
   featured-image/includes/nelio-efi-main.php on line 98
 * This plugin also doesn’t work with twentyfifteen theme

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-on-143-version/#post-7209877)
 * Hi!
 * Thanks for reporting the notice again; it’ll be fixed in the next release. In
   the meantime, just [take a look at this other thread for applying the solution yourself](https://wordpress.org/support/topic/php-notice-after-update-to-143?replies=2).
 * Regarding the issue with the twenty fifteen theme, that’s not possible. I use
   that theme in my development installation and featured images work just fine.
   What’s amiss in your case?
 *  Thread Starter [Nguyễn Việt Anh](https://wordpress.org/support/users/alexviean/)
 * (@alexviean)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-on-143-version/#post-7209934)
 * Thanks for replying.
    Sorry for not describing particularly. It’s Previous/Next
   Posts section at the end of every posts in twentyfifteen theme
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [10 years ago](https://wordpress.org/support/topic/error-on-143-version/#post-7209945)
 * Hi!
 * You’re absolutely right; in the Prev/Next posts, featured image is not visible.
   In order to overcome this issue, add the following function in theme’s `functions.
   php` file (or, if you have a plugin where you add your own customization, add
   it there):
 *     ```
       function nelioefi_twentyfifteen_post_nav_background() {
         if ( ! is_single() ) {
           return;
         }
   
         $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
         $next     = get_adjacent_post( false, '', false );
         $css      = '';
   
         if ( is_attachment() && 'attachment' == $previous->post_type ) {
           return;
         }
   
         if ( $previous &&  uses_nelioefi( $previous->ID ) ) {
           $css .= '
             .post-navigation .nav-previous { background-image: url(' . esc_url( nelioefi_get_thumbnail_src( $previous->ID ) ) . '); }
           ';
         }
   
         if ( $next && uses_nelioefi( $next->ID ) ) {
           $css .= '
             .post-navigation .nav-next { background-image: url(' . esc_url( nelioefi_get_thumbnail_src( $next->ID ) ) . '); border-top: 0; }
           ';
         }
   
         wp_add_inline_style( 'twentyfifteen-style', $css );
       }
       add_action( 'wp_enqueue_scripts', 'nelioefi_twentyfifteen_post_nav_background', 99 );
       ```
   
 * Best,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error Undefined variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/external-featured-image_947a5f.svg)
 * [Nelio External Featured Image (discontinued) - Available in Nelio Content](https://wordpress.org/plugins/external-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/external-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-featured-image/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Aguilera](https://wordpress.org/support/users/davilera/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/error-on-143-version/#post-7209945)
 * Status: resolved