How can I display the POSTS underneath a page in a page template
-
Hi,
I have a template that displays the homepage.
I would like to be able to display the POSTS underneath that page?!here is my home template:
<?php /* Template Name: Homepage */ ?> <?php get_header(); ?> <section id="omc-main"> <?php $dispalyed = false; if (function_exists('shareit_output')) { $h_sticky = shareit_output(); $home_page = get_option ('shareit_home', 0); if (!$displayed and $h_sticky && $home_page == 1) { echo $h_sticky; $displayed = true; } } ?> <?php get_template_part( 'loop', 'flexslider-homepage' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> <br class="clear" /> </section><!-- /main --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How can I display the POSTS underneath a page in a page template’ is closed to new replies.