• Resolved donmamone

    (@donmamone)


    Hello,

    I am presently using the ChaoticSoul theme and it is working nicely with one exception. I have added page numbers to the bottom of the main page and when the viewer clicks on page 2 the most recent post populates there again. This same problem was experienced when I had “older and newer posts” links. This is definitely specific to this theme because the page number behave properly when I changed themes to test.

    The Index code is:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<!-- First Post -->
      	<?php $top_query = new WP_Query('showposts=1'); ?>
      	<?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>
    
    			<div class="post top" id="post-<?php the_ID(); ?>">
    				<h2 class="first"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<span class="postmetadata">&bull; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit', '(', ')'); ?></span>
    
    				<div class="entry">
    					<?php the_content("<span class=\"continue\">" . __('Continue reading','') . " '" . the_title('', '', false) . "'</span>"); ?>
    				</div>
    			</div>
    
    		<?php endwhile; ?>
    
    		<!-- Next few posts -->
    		<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>	
    
    			<div class="post lastfive" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<span class="postmetadata">&bull; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit', '(', ')'); ?></span>
    
    				<div class="entry">
    					<?php the_content(); ?>
    				</div>
    			</div>
    
    		<?php endif; endwhile; ?>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Thanks,
    Don

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HELP – Chaotic Soul Theme Post Issues’ is closed to new replies.