Forums

[resolved] Next Page not working--help! (5 posts)

  1. healthycosmos
    Member
    Posted 7 months ago #

    When you click "next page" (to see older posts) on my website http://www.healthycosmos.com, it stays on the same page. The text says page 2, yet it does not actually go to the older posts and just stays on the home page. Clicking "next page" stays on the same exact page, but the web link changes from http://healthycosmos.com/ to http://healthycosmos.com/page/2/

    I am using the Clear Line Theme.

    Does anyone know how to fix this? I would tremendously, tremendously appreciate your help!

  2. vtxyzzy
    Member
    Posted 7 months ago #

    The code is confusing, and I can't test it, but try changing this line (line 61) in index.php from this:

    $wpq->query(array('post__not_in' => $displayed_ids,'cat'=>$cat,'posts_per_page'=>$show_posts));

    to this:

    $wpq->query(array('paged' => $page, 'post__not_in' => $displayed_ids,'cat'=>$cat,'posts_per_page'=>$show_posts));
  3. healthycosmos
    Member
    Posted 6 months ago #

    Thanks so much for your help! Unfortunately that did not work, and made it such that I couldn't even access the webpage at all if I typed in the domain name so I put it back to the original. But still I cannot figure out how to get the "next page" to work. Any ideas? I would TREMENDOUSLY appreciate your help!

    I also have another question: How do I create a "Home" page on the Clear Line Theme since it does not come with its own?

  4. SwansonPhotos
    Member
    Posted 6 months ago #

    When I click Next link at the bottom left of your homepage, i am seeing this:

    http://healthycosmos.com/?paged=2

    Clear your cookies and cache?

  5. vtxyzzy
    Member
    Posted 6 months ago #

    This has been resolved, but the OP has not updated yet.

Reply

You must log in to post.

About this Topic