Hi Rachel and @trackandfieldmedia,
Thanks for getting in touch! Regarding the issue with Newspaper, I think this should fix the issue. Last time I checked (a few days ago), featured images were inserted by includes/wp_booster/td_module_single_base.php
. In particular, around line 115 you’ll see the following:
if (get_post_format($this->post->ID) == 'video') {
//if it's a video post...
$td_post_video = get_post_meta( … );
//render the video if the post…
if (!empty($td_post_video['td_video'])) {
return td_video_support::render_video( … );
}
} else {
//if it's a normal post, show the default thumb
if (!is_null($this->post_thumb_id)) {
…
}
}
Well, we simply need to add an else if
right before the else
block:
if (get_post_format($this->post->ID) == 'video') {
//if it's a video post...
$td_post_video = get_post_meta( … );
//render the video if the post…
if (!empty($td_post_video['td_video'])) {
return td_video_support::render_video( … );
}
} else if ( function_exists( 'uses_nelioefi' ) && uses_nelioefi( $this->post->ID ) ) {
$img = nelioefi_get_thumbnail_src( $this->post->ID );
return '<img width="100%" class="entry-thumb" src="' . esc_attr( $img ) . '" />';
} else {
//if it's a normal post, show the default thumb
if (!is_null($this->post_thumb_id)) {
…
}
}
This way, we’ll shortcircuit Newspaper’s default behavior and print our external featured image. Please, let me know if this solved the issue.