• Hello!
    I’m having a problem with my pagination.
    I want it to work like this:
    The output: <1>
    The left arrow is a link for privious entries, the right arrow for next entries, and the “1” is the pagenumber.

    And if there’s no privious entries for instance, i want the arrow to still be there, but un-clickable.
    This is my current code (It’s ofcourse not working at the moment):

    <?php if(count(next_posts_link()) > 0): echo "the link..."; ?>
            <?php else: echo "the link, but unclickable"; ?>
            <?php endif; ?>
           //Below this is working
               <?php next_posts_link('<') ?>
    		   <?php if(!empty($_GET["paged"])) { echo '<strong>'.$_GET["paged"].'</strong>'; } else { echo "<strong> 1 </strong>"; } ?>
    		   <?php previous_posts_link('>') ?>
Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter felixkarlsson

    (@felixkarlsson)

    But there is a problem, it doesn’t work with my month archive. And I don’t know how to solve it yet. Any ideas? ??

    You can visit this page to see what i mean: https://www.gumpalalla.se (strong material).

    Click “September” and try to change page. (It shows the same page again) ??

    Thankful for help!

    In which file do you insert it?
    Thanks.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Pagination’ is closed to new replies.