Support » Themes and Templates » Custom Select Posts and Pagination – Problem

  • Hi,

    this is my problem in my CATEGORY TEMPLATE i want to have a navigation with the next options:

    sort by: title, rating, hits
    page: 1,2,3,4 all

    After a while i found in here the guide for build my custom query and actually i can do all type of sorting, but the problem is that if i use a custom select query for my category page i cannot use pagination feature so i can display the list of all posts under this category and i can sort them in different way…

    Now i found in here this other good post:

    http://wordpress.org/support/topic/57912?replies=8#post-312858

    Where is presented a partial solution valid when you want to paginate posts selected not with custom query but with query_post() function:

    <?php
    if (is_home()) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=-3&paged=$paged");
    }
    ?>

    Anybody can suggest me the solution in this case ? I saw other discussions about this problòem and i think that a lot of other people will be happy to know the solution !

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Select Posts and Pagination – Problem’ is closed to new replies.