WordPress.org

Ready to get started?Download WordPress

Forums

Category Archive with unlimited number of posts without pagination& (7 posts)

  1. ganges
    Member
    Posted 8 years ago #

    Sirs!

    I have category 'profiles' with 40 posts in it. Please, suggest me technics to prevent pagination below 10 posts per page

    I dont want pagination becouse it break my nav structure.

    Once more - i want all of my 40 profiles in one page - i.e in category (Profiles) archive.

    Thanx

  2. maerk
    Member
    Posted 8 years ago #

    Yeah, should be possible. Add this to your archive page, before the Loop:

    $wp_query->query_vars["posts_per_page"] = -1;
    $wp_query->get_posts();

  3. ganges
    Member
    Posted 8 years ago #

    Thank You Maerk
    Lot of

  4. maerk
    Member
    Posted 8 years ago #

    Any time, it's a pleasure :D

  5. moshu
    Member
    Posted 8 years ago #

    Or use this plugin and you can control all the different views in your blog (index, archive, category, search etc.)
    http://mattread.com/archives/2006/01/custom-query-string-27/

  6. ganges
    Member
    Posted 8 years ago #

    Wow! This plugin rulles!
    Lot of thanx

  7. brockangelo
    Member
    Posted 7 years ago #

    This is awesome! Worked immediately. Thanks!
    brockangelo.com

Topic Closed

This topic has been closed to new replies.

About this Topic