Post doesn't show up
-
Hey guys,
I’ve searched for the solution to display my posts on a page, but I can’t find what the problem might be. The page where I want to show the excerpts from all posts has the file archive.php as template. Below is my code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="blogMessages"> <div class="diamondOverlay"></div> <?php if (has_post_thumbnail()) {the_post_thumbnail();} ?> <h4><?php the_title()?></h4> <p> <?php the_content()?> </p> </div> <?php endwhile; ?> <?php endif; ?>
Does anyone know why it won’t work?
Please, help me out! Thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Post doesn't show up’ is closed to new replies.