WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Wp_query Page Navigation (2 posts)

  1. sickopathologist
    Member
    Posted 1 year ago #

    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>
  2. sickopathologist
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic