How to add Support to show Fullwidth Featured Image of Custom Post Types in WordPress.?

This happens when the image does not have a specific width/height. The image you try to load in your custom-post-type is too small (379x354px). So LinkedIn, Facebook or others will use the layout with the smaller image. Facebook says: Images that are at least 470×246 pixels will display as a rectangle with the title and … Read more

Use different post formats on different post types

This should get you going in the right direction. Not my solution, slightly modified from here. You’ll need to swap out your-post-type for the post type you’re using. function adjust_post_formats() { if (isset($_GET[‘post’])) { $post = get_post($_GET[‘post’]); if ($post) $post_type = $post->post_type; } elseif ( !isset($_GET[‘post_type’]) ) $post_type=”post”; elseif ( in_array( $_GET[‘post_type’], get_post_types( array(‘show_ui’ => … Read more

images not showing despite using add_theme_support(‘post-thumbnails’);

Since you appear to be using Featured Images, replace this: <div class=”post-image”> <?php echo ravs_get_custom_image( get_post_thumbnail_id () ); ?> </div><!– end post-image –> with this: <div class=”post-image”> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( ‘custom-image’ ); } ?> </div> References Codex: has_post_thumbnail() the_post_thumbnail()