WordPress.org

Ready to get started?Download WordPress

Forums

paginating category page? (2 posts)

  1. atracksler
    Member
    Posted 1 year ago #

    Here is the code on my category page:

    <?php /* Template Name: Category*/ ?>
    
    <?php get_header(); ?>
    
    	<div id="meat-left">
    	<h1>	Recordingography >><?php single_cat_title(); ?></h1>
    	<p><?php echo category_description(); ?></p>
    
    <?php if (have_posts()): while (have_posts()): the_post(); ?>
    <ul class="ology">
    			<li>
    
    					<?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>
    					<a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
    			<p>
    			       		<?php
    $Note = get_post_meta($post->ID, 'Note', true);
    if($Note != '') echo "<strong> - </strong>" . $Note;
    ?></p>
    			</li>
    
    			</ul>
    
    	<?php comments_template(); ?>
    
    <?php endwhile; endif;?>
    
    		<?php echo do_shortcode('[fbcomments]'); ?>
    
    	</div>
    		</div>
    
    	<?php get_sidebar();?>
    
    <?php get_footer(); ?>

    Where do I add the code to paginate these? Right now there are only 10 posts showing...

    Thanks in advance!

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    possibly between endwhile; and endif;

    example:

    <?php endwhile; ?>
    <?php post_nav_links(); ?>
    <?php endif;?>

    http://codex.wordpress.org/Function_Reference/posts_nav_link

Topic Closed

This topic has been closed to new replies.

About this Topic