Hi Nathan!
Unfortunately, I don’t. I guess the problem is that the theme is using the functions wp_get_attachment_image_src
and get_post_thumbnail_id
to get the featured image of a hotel (the custom post type I assume your theme’s using). But our plugin only works if a function named (get_)the_post_thumbnail
is used… so I’m afraid there’s little I can do for you.
You’ll have to look for those functions in your theme and see how they’re used. Usually, it looks like this:
$img = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
and it should be changed to this:
$img = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
if ( function_exists( 'uses_nelioefi' ) and uses_nelioefi( get_the_ID() ) {
$img = array( nelioefi_get_thumbnail_src( get_the_ID ) );
}
where we basically overwrite the variable $img
with the actual featured image.
To be completely honest with you, this is not an easy task. It’s the most common issue we face with our plugin and, unfortunately, there’s nothing I can do to overcome it ??