After the latest update, Twenty Eleven child theme shows only one recent post in full format and the rest just with the title.
In order to have the recent posts in full change in showcase.php
from:
[php]// The first Recent post is displayed normally
if ( $recent->have_posts() ) : $recent->the_post();
// Set $more to 0 in order to only get the first part of the post.
global $more;
$more = 0;
get_template_part( ‘content’, get_post_format() );
echo ‘<ol class="other-recent-posts">’;
endif;
// For all other recent posts, just display the title and comment status.
while ( $recent->have_posts() ) : $recent->the_post(); ?>
<li class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
<span class="comments-link">
<?php comments_popup_link( ‘<span class="leave-reply">’ . __( ‘Leave a reply’, ‘twentyeleven’ ) . ‘</span>’, __( ‘<b>1</b> Reply’, ‘twentyeleven’ ), __( ‘<b>%</b> Replies’, ‘twentyeleven’ ) ); ?>
</span>
</li>
<?php
endwhile;
// If we had some posts, close the <ol>
if ( $recent->post_count > 0 )
echo ‘</ol>’;
?>[/php]
to:
[php]// The Recent posts all displayed normally
if ( $recent->have_posts() ) : while ( $recent->have_posts() ) : $recent->the_post();
// Set $more to 0 in order to only get the first part of the post.
global $more;
$more = 0;
get_template_part( ‘content’, get_post_format() ); ?>
<?php endwhile; endif; wp_reset_postdata(); ?>[/php]
Leave a Reply