gangwani
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Featured Images not consistently displayingThe variable comes from “content_gallery.php”:
<?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?>The entire file is the default content_gallery.php except that I commented out a section. See here: http://pastebin.com/5DT1Enn6
Thanks again for the help guys.
Forum: Fixing WordPress
In reply to: Featured Images not consistently displayingI believe it is this:
<figure class="gallery-thumb"> <a href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </figure><!-- .gallery-thumb -->It works for 2/6 posts I have on there: the first in the blog order and the last in the blog order. The ones in the middle show the first image embedded in the blog, but not a featured image (which I set).
Forum: Fixing WordPress
In reply to: Featured Images not consistently displayingStill need help with this. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)