Support » Fixing WordPress » Wp_query Page Navigation

  • Resolved sickopathologist

    (@sickopathologist)


    Hi all,

    a page created in this way ..

    it works perfectly.

    but attaching the page navigation does not work!

    I can not switch to other pages.

    listed a total of 7000 article. I can not pass beyond the first 150 article.

    (If we solve the problem of the navigation page, the site map is a great way to!)

    <?php
    /* template name: Posts by Category! */
     ?>
    
    <?php
    get_header();
    ?>
    
    <div class="entry" ?>
    <ul>
    
    <?php query_posts('showposts=150&orderby=title&order=ASC&cat=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    <?php endwhile; ?>
    </ul>
    
    </div>
    <br>
    </div>
    
    <?php get_sidebar(); ?>
    <!-- The main column ends  -->
    <?php get_footer(); ?>
    </body>
Viewing 1 replies (of 1 total)
  • hello,

    i solved my problem.

    i’m searching other source

    and

    i added this code;

    <?php query_posts('showposts=150&orderby=title&order=ASC&cat=1&posts_per_page=30'.'&paged='.$paged); ?>

    work perfectly!

Viewing 1 replies (of 1 total)
  • The topic ‘Wp_query Page Navigation’ is closed to new replies.