• I’m having trouble getting my blog to move from one page to the next. I got it to work on my categories so I thought I would do the same with my index. It shows the number of pages at the bottom of my home page and you can click the pages to make it query up in the address bar but it doesn’t page the content.

    I tried adding the next/previous in the footer and it’s the same problem. Not sure quite what to do now any suggestions?

    Here’s my index.php code
    https://wordpress.pastebin.com/dagUbpaX

    and here’s my website
    https://trileafdesigns.com/calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    Thanks for using the pastebin…

    I haven’t tried your code. The first thing I suggest is try moving line 9
    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;

    after line 3
    <div class="page-wrapper">

    it may not resolve the issue but it won’t hurt moving it there. That is the line of code needed to resolve paging issues such as you are having. Your code has it within an IF statement, meaning it is not being executed some of the time. Its possible it needs to be executed in some of the situations that are causing the result you are writing about. If it doesn’t work you can always move it back where it is. But it just could quickly solve the issue.

    Thread Starter trileafdesigns

    (@trileafdesigns)

    I appreciate the help but didn’t work :/

    Any other suggestions? I’ve been playing around with this all day moving code left and right and searching though the codex but nothing so far.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Having Huge Trouble With Next Page and Previous Page’ is closed to new replies.