Posts not showing up
-
Hello dears,
I have put the loop, the page content is displaying but not the posts, this is my code:
<?php get_header(); ?> <!-- site-content --> <div id="primary" class="content-area"> <!-- 01/11/15 Adding div for the content of the page --> <div class="2colums-presentation"> <!-- 01/11/15 creating column to put content on the left --> <div class="column1"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_content('content'); ?> <?php endwhile; else : echo '<p>No content found</p>'; endif; ?> </div> <!-- 01/11/15 creating column to put sidebar on the right --> <div class="column2"> <?php get_sidebar(); ?> </div> <span class="clear"></span> </div> </div><!-- /site-content --> <?php get_footer(); ?>Is anyone has an idea why?
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Posts not showing up’ is closed to new replies.