Forums

Having Huge Trouble With Next Page and Previous Page (3 posts)

  1. TriLeafDesigns
    Member
    Posted 1 year ago #

    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
    http://wordpress.pastebin.com/dagUbpaX

    and here's my website
    http://trileafdesigns.com/calendar/

  2. stvwlf
    Member
    Posted 1 year ago #

    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.

  3. TriLeafDesigns
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic