Tag Info

Hot answers tagged


How can we force has_post_thumbnails() to return false? Method #1 - disable theme support: You can remove the post thumbnails support from the backend, with function twentythirteen_child_setup() { remove_theme_support( 'post-thumbnails' ); } add_action( 'after_setup_theme', 'twentythirteen_child_setup', 11 ); but notice that this will not remove ...


You are not using loop properly. Not tested but you can try this: <?php if (have_posts()) : ?> <br /> <div class="jumbotron"> <?php while (have_posts()) : the_post(); ?> <?php the_post_thumbnail(array('class' => 'img-thumbnail')); ?> <?php endwhile; ?> <br /><br ...


Next time having a look at the docs might help ;) MultiPostThumbnails::has_post_thumbnail( $post_type, $id, $post_id = null ) Source: https://github.com/voceconnect/multi-post-thumbnails/wiki/Functions-and-Template-Tags#has_post_thumbnail I guess you can make it from here. If not let us know.

Only top voted, non community-wiki answers of a minimum length are eligible