• 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)
  • Thread Starter Curly-Chick

    (@curly-chick)

    Oh sorry, <?php the_content()?> has to be <?php the_excpert()?>.
    I wanted to check if it works with <?php the_content()?> but it doesn’t.

    What theme are you using? Where did you download it from?

    Thread Starter Curly-Chick

    (@curly-chick)

    I’m sorry, i’m creating my own theme.
    Oh and i’ve noticed something.
    the_title in my loop is showing up the title of the page instead of the post.
    I think that’s useful information, but I don’t know the meaning of that.

    Thread Starter Curly-Chick

    (@curly-chick)

    My blog page displays my homepage if I use a static homepage and a static page for my blog posts.
    Do you know why?
    Please let me know!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post doesn't show up’ is closed to new replies.