paginate query_posts
-
Addendum to this closed post: http://wordpress.org/support/topic/paginate-query_posts?replies=2
I’m using a slightly newer version of wordpress than this postSimilar scenario: this code works properly and now i’m trying to add the pagination to the query (see code 2 & 3)
code1
<?php query_posts('posts_per_page=6&&cat=3&&orderby=title&&order=ASC'); while (have_posts()) : the_post(); ?> <h4 class="bio" style="font-weight:bold"> <?php the_title() ?> </h4> <?php echo get_the_post_thumbnail($page->ID, array(65,65) ); ?> <?php the_content(); ?> <p> </p> <hr> <?php endwhile; ?> <?php echo paginate_links ('Next »', '« Previous'); ?>code2
<?php query_posts("cat=3&posts_per_page=5&paged=$paged"); while (have_posts()) : the_post(); ?>code3
<?php query_posts($query_string.'&posts_per_page=-1'. '&paged='.$paged .'cat=3&&orderby=title&&order=ASC' ); while (have_posts()) : the_post(); ?>site ref: http://howlingwolfmedia.com/site3/classes/instructors/
The topic ‘paginate query_posts’ is closed to new replies.