Home › Forums › Back End › Placing Recent Posts on Responsive Theme Stock Homepage › Reply To: Placing Recent Posts on Responsive Theme Stock Homepage
May 4, 2014 at 11:10 am
#169190
Participant
Ok so I’ve copied this piece of code from the index.php file and place it between the pieces of code up above:
<?php if( have_posts() ) : ?>
<?php while( have_posts() ) : the_post(); ?>
<?php responsive_entry_before(); ?>
<div>" <?php post_class(); ?>>
<?php responsive_entry_top(); ?>
<?php get_template_part( 'post-meta-page' ); ?>
<div>
<?php if( has_post_thumbnail() ) : ?>
<a>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<?php the_excerpt( __( 'Read more ›', 'responsive' ) ); ?>
</div>
<?php get_template_part( 'post-data' ); ?>
<?php responsive_entry_bottom(); ?>
</div><!-- end of #post-<?php the_ID(); ?> -->
<?php responsive_entry_after(); ?>
<?php
endwhile;
get_template_part( 'loop-nav' );
else :
get_template_part( 'loop-no-posts' );
endif;
?>
Now how can I get this to just display the current 3 posts???