Title: Custom post types?
Last modified: September 1, 2016

---

# Custom post types?

 *  Resolved [sandcastl3s](https://wordpress.org/support/users/sandcastl3s/)
 * (@sandcastl3s)
 * [10 years ago](https://wordpress.org/support/topic/custom-post-types-273/)
 * Hey David,
 * Do you have any pointers for troubleshooting display problems on custom post 
   types? I’m using Elegant Themes’ Explorable for a hotel booking map site and 
   the images from the hotel data feed don’t want to display.
 * Let me know if you have any tips.
 * Thanks!
 * Nathan
 * [https://wordpress.org/plugins/external-featured-image/](https://wordpress.org/plugins/external-featured-image/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/custom-post-types-273/#post-7537881)
 * 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 🙁

Viewing 1 replies (of 1 total)

The topic ‘Custom post types?’ 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/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [display](https://wordpress.org/support/topic-tag/display/)
 * [Explorable](https://wordpress.org/support/topic-tag/explorable/)
 * [image](https://wordpress.org/support/topic-tag/image/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Aguilera](https://wordpress.org/support/users/davilera/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/custom-post-types-273/#post-7537881)
 * Status: resolved