The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Posts for Page
Posts are Inside one another (1 post)

  1. ernaparalla
    Posted 3 years ago #

    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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts for Page
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by ernaparalla
  • This topic is not a support question
  • WordPress version: 3.4.2