Support » Plugin: Posts for Page » Posts are Inside one another

  • Instead of displaying each post’s image and then each post’s content it displays all of the posts’ images and then all of the posts’ content. Here is the page template code:

    Template Name: People
    <?php get_header(); ?>
    		<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    		<!-- Post -->
    		<div class="post">
    			<div class="images"></div>
    			<div class="content">
    				<?php the_content(''); ?>
    			<div class="title">
    				<b><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></b><br />
    				Posted by <?php the_author(); ?> on <?php the_time('j F Y'); ?>
    		<?php endwhile; ?>
    		<div id="end">
    			<div class="column">
    				<?php previous_posts_link('Newer<br />') ?>
    				<?php next_posts_link('Older') ?>&nbsp;
    	<?php else : ?>
    		<!-- 404 -->
    		<div class="column">
    			<h1 id="fourOhfour">404</h1>
    			<h3>This page either never existed or doesn't exist anymore :/</h3>
    	<?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I can’t seem to find the problem here, would it be coming from somewhere else? Thanks!

  • The topic ‘Posts are Inside one another’ is closed to new replies.