not displaying posts
-
can someone explain this to me, am using a grid theme, the home page is set to display all posts, but the code below is used in the homage, how would i get this to use in a page template as I’ve tried creating a template with it in but it doesn’t display anything;
<?php if (have_posts()) : ?> <div id="post-area"> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( has_post_thumbnail() ) { ?> <div class="imagewrap"> <div class="gridly-image"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'summary-image' ); ?></a></div> <div class="gridly-category"><p><?php the_category(', ') ?></p></div> </div> <?php } ?> <div class="gridly-copy"><h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <p class="gridly-link"><a href="<?php the_permalink() ?>">read more →</a></p> </div> </div> <?php endwhile; ?> </div> <?php else : ?> <?php endif; ?> <?php next_posts_link('<p class="view-older">View Older Entries</p>') ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘not displaying posts’ is closed to new replies.