• Ive searched around for an answer to this and saw a couple of the same posts around with the same problem, but no actual answer unfortunately.

    Problem being I have 3 seperare categories being displayed on 1 page… I would like to make it so that the Main category of the page can be scrolled through to older posts with pagination.

    I put the code in after <?php endwhile ?>, the pagination displayed, and the links worked, however the posts on the page remained the same and didnt change regardless of which page I went to.

    After reading some older posts I have probably used ‘query_posts’ wrong, so hopefully somebody here can help.

    Im using Query_Posts 3 times like so:

    <?php
    query_posts('category_name=news');
    while ( have_posts() ) : the_post() ?>
    
      // styling here //
    
    <?php endwhile ?>

    Then that is simply repeated on the page with a different category_name.

    Link to site: https://www.thefightlounge.co.uk

    Thanks,

Viewing 15 replies - 1 through 15 (of 19 total)
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Query posts and Pagination Links Broken’ is closed to new replies.