Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter cakemaniac22

    (@cakemaniac22)

    Heres my old code.. and this the pagination i have and doesnt work as well

    <?php get_header(); ?>
    
    	<div id="content">
    	<div class="scroller">
    	<div class="format">
    	<?php
    	if ( have_posts() ) :
    	while ( have_posts() ) : the_post(); ?>
    
    	<p class="newstitle"><?php the_title(); ?></p>
    	<?php the_content(); ?>
    	<br /><br />
    	<?php endwhile; ?>
    	<blockquote><p><?php previous_posts_link('PREVIOUS'); ?> <?php next_posts_link('NEXT'); ?></p></blockquote>
    	<?php else: ?>
    	<?php _e('Sorry, no posts matched your criteria.'); ?>
    	<?php endif; ?>
    
    	</div><!--end format-->
    
    	<div class="comment-area">
    	<?php comments_template( '', true ); ?>
    	</div><!--end comment-area-->
    	</div><!--end scroller-->
    	</div><!--end content-->
    
    	<div id="sidebarmain">
    	<?php get_sidebar(); ?>
    	</div><!--end sidebarmain-->
    
    <?php get_footer(); ?>

    Heres my new code when i followed the instructions

    <?php get_header(); ?>
    
    	<div id="content">
    	<div class="scroller">
    	<div class="format">
    	<?php
    	if ( have_posts() ) :
    	while ( have_posts() ) : the_post(); ?>
    
    	<p class="newstitle"><?php the_title(); ?></p>
    	<?php the_content(); ?>
    	<br /><br />
    	<?php endwhile; ?>
    	<blockquote><?php if(function_exists('wp_paginate')) {
        wp_paginate(); } ?></blockquote>
    	<?php else: ?>
    	<?php _e('Sorry, no posts matched your criteria.'); ?>
    	<?php endif; ?>
    
    	</div><!--end format-->
    
    	<div class="comment-area">
    	<?php comments_template( '', true ); ?>
    	</div><!--end comment-area-->
    	</div><!--end scroller-->
    	</div><!--end content-->
    
    	<div id="sidebarmain">
    	<?php get_sidebar(); ?>
    	</div><!--end sidebarmain-->
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)