• Resolved adz1809

    (@adz1809)


    Hi,

    I have a review page on my site that displays all post with the tag ‘Review’, however is is only show 6 at anytime, which is the same as my settings for total number of posts per page. Is there a way of overriding this to show all posts.

    Here is the page:

    Attack from planet B reviews

    Here is my code:

    <?php query_posts('&orderby=title&order=asc&tag=review');?>
    
    	<?php if (have_posts()) : ?>
    
    <ul id="review-list">
    <?php while (have_posts()) : the_post(); ?>
    
    			<li class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read review for <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
    
    <?php endwhile; ?>
    </ul>

    Thanks in advance

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

    (@adz1809)

    No worries everyone I’ve sorted it by adding the following to me query:

    &posts_per_page=-1

    Cheers anyway

Viewing 1 replies (of 1 total)

The topic ‘query_posts’ is closed to new replies.