Forums

[resolved] query posts function breaking archive categories (3 posts)

  1. ekajatik
    Member
    Posted 11 months ago #

    I am using this additional snippet on my archive page:
    <? query_posts('showposts=30'); ?>
    but it is changing the archive to render all posts in date order, not the category of archive.

  2. MichaelH
    Volunteer
    Posted 11 months ago #

    Look at using

    <? query_posts($query_string . '&posts_per_pate=30'); ?>

    See:
    http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note
    http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters

    [edit fixed code]

  3. ekajatik
    Member
    Posted 11 months ago #

    Got it, thanks.

Reply

You must log in to post.

About this Topic