• ernaparalla

    (@ernaparalla)


    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:

    <?php
    /*
    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>
    
    			<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'); ?>
    			</div>
    		</div>
    
    		<?php endwhile; ?>
    
    		<div id="end">
    			<div class="column">
    				<?php previous_posts_link('Newer<br />') ?>
    				<?php next_posts_link('Older') ?>&nbsp;
    			</div>
    		</div>
    
    	<?php else : ?>
    
    		<!-- 404 -->
    		<div class="column">
    			<h1 id="fourOhfour">404</h1>
    			<h3>This page either never existed or doesn't exist anymore :/</h3>
    		</div>
    
    	<?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!

    https://www.ads-software.com/extend/plugins/posts-for-page/

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