Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Placing Recent Posts on Responsive Theme Stock Homepage Reply To: Placing Recent Posts on Responsive Theme Stock Homepage

#169190
bmoneruiux
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>" &lt;?php post_class(); ?&gt;&gt;
            &lt;?php responsive_entry_top(); ?&gt;

            &lt;?php get_template_part( 'post-meta-page' ); ?&gt;

            <div>
                &lt;?php if( has_post_thumbnail() ) : ?&gt;
                    <a>" title="&lt;?php the_title_attribute(); ?&gt;"&gt;
                        &lt;?php the_post_thumbnail(); ?&gt;
                    </a>
                &lt;?php endif; ?&gt;
                &lt;?php the_excerpt( __( 'Read more ›', 'responsive' ) ); ?&gt;
            </div>

            &lt;?php get_template_part( 'post-data' ); ?&gt;

            &lt;?php responsive_entry_bottom(); ?&gt;
        </div>&lt;!-- end of #post-&lt;?php the_ID(); ?&gt; --&gt;
        &lt;?php responsive_entry_after(); ?&gt;

    &lt;?php
    endwhile;

    get_template_part( 'loop-nav' );

    else :

    get_template_part( 'loop-no-posts' );

    endif;
    ?&gt;

Now how can I get this to just display the current 3 posts???