Show featured image next to post-teasers in Genesis Framework?

(Cut/pasted from the OP.) SOLUTION: As it turns out, this is very simple. Go to your Dashboard –> Genesis –> Theme Settings Now in the box labelled “Content Archives” select “Display Post Excerpts” from the drop down menu. Now make sure the “Include the Featured Image” box is checked and select your image size. Save … Read more

Setting a default placeholder image WITHOUT link

<div class=”imageContainer”> <?php if ( has_post_thumbnail() ) : ?> <a href=”https://wordpress.stackexchange.com/questions/63591/<?php the_permalink(); ?>”><?php the_post_thumbnail(‘size-2’); ?></a> <?php else : ?> <img src=”<?php echo get_bloginfo( ‘stylesheet_directory’ ); ?>/images/shared/placeholder.jpg” /> <?php endif; ?> </div>

Look Through Family Tree and Find Featured Image

I don’t see anything particularly wrong with it, although I’d probably write the loop like this: $featuredImage=””; foreach ( $familyTree as $family_postid ) { if ( has_post_thumbnail( $family_postid ) ) { $featuredImage = get_the_post_thumbnail( $family_postid, ‘full’ ); break; } } A bit simpler to understand and eliminates the use of the counter and boolean found … Read more

Displaying media for custom post type

the_post_thumbnail() echoes the full image tag including src, you’re using it within your own image tag. If you want just the thumbnail src to use within your own tag, use wp_get_attachment_image_src instead. also- unrelated, use the_title_attribute for alt and title attributes within tags instead of the_title. EDIT- using wp_get_attachment_image_src: <?php $image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ … Read more

Echo URL of large version of Featured Image

Use the second parameter of wp_get_attachment_image_src(): $size. $att = wp_get_attachment_image_src( $att_ID, ‘large-thumb’ ); or $att = wp_get_attachment_image_src( $att_ID, array ( 900, 300 ) ); The size is passed to image_downsize() and there to image_get_intermediate_size(). If $size is an array WordPress will search for the best match in existing images: // from wp-includes/media.php::image_get_intermediate_size() // get the … Read more