Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8301835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:08:33+00:00 2026-06-08T17:08:33+00:00

My problem is that, although the links do appear on the bottom of the

  • 0

My problem is that, although the links do appear on the bottom of the page where I place the function that calls the pagination.

when clicked, the page does nothing.

I’ve found countless similar questions on the web (many here on SO ) but when I try to implement
those posts resolutions, the same thing happens. ALL the different pagination methods,loops,functions….and EVEN plugins that I try WORK in that they appear on the page but when clicked, the URL changes accordingly but the page content doesn’t change.

So as an example, I’m using this loop that I found in an “accepted answer” from someone elses question here on SO

function pagination($pages = '', $range = 3){ 
    $showitems = ($range * 2)+1;
    global $paged; if(empty($paged)) $paged = 1;
    if($pages == '') {
        global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages)
    { $pages = 1; } 
}

 if(1 != $pages) { echo "<div class='pagination'><span>Page ".$paged." of ".$pages."</span>";
     if($paged > 2 && $paged > $range+1 && $showitems < $pages) {
         echo "<a href='".get_pagenum_link(1)."'>&laquo; First</a>";
     }
     if($paged > 1 && $showitems < $pages) {
         echo "<a href='".get_pagenum_link($paged - 1)."'>&lsaquo; Previous</a>";
     }

     for ($i=1; $i <= $pages; $i++){
          if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )){
               echo ($paged == $i)? "<span class='current'>".$i."</span>":"<a href='".get_pagenum_link($i)."' class='inactive'>".$i."</a>";
        } 

     }

      if ($paged < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($paged + 1)."'>Next &rsaquo;</a>";
     if ($paged < $pages-1 &&  $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last &raquo;</a>";
     echo "</div>n"; }
 }

and applied the function call to the bottom of my post loop under the endwhile//if so that it doesn’t repeat through each post shown on the page, and again, it shows (just like all the others)
but the page itself doesn’t do anything.

My question is, with this type of a problem where the links are showing up and all types of different versions I’ve tried, do appear on the page but when clicked, go nowhere, what is it I could be missing?

Do I need to enable pagination somewhere like the way one enables widgets or..or do my pages have to have any type of hook or ….. like when one inserts “” etc…

I’m at a loss.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:08:35+00:00Added an answer on June 8, 2026 at 5:08 pm

    This should solve your problem. Also I am using kriesi pagination function but you can switch out the if (function_exists(“pagination”)) with the default wordpress older and newer function.

    // Backup the original property value
    $backup_page_total = $wp_query->max_num_pages;
    // Copy the custom query property to the $wp_query object
    $wp_query->max_num_pages = $loop->max_num_pages;
    ?>
    <!-- now show the paging links -->
    <?php if (function_exists("pagination")) {pagination($additional_loop->max_num_pages);} ?>
    <?php
    // Finally restore the $wp_query property to it's original value
    $wp_query->max_num_pages = $backup_page_total;
    ?>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a really strange problem, that appears to be somewhat intermittent (although it
We currently have a problem whereby on our stage servers, links that exist on
Currently, I have an asp.net web application that links to another page. The enduser
I have been using this function for a while without a problem, although I
Simple problem that I can't figure out... How can I print a '%' character
The problem that I have is somehow very specific. I have to implement a
I have a problem that I'm working on for quite some time now. I
Here is a problem that has been bothering me a lot about Python, I
Im currently facing the problem that when i try to set focus on some
Seems to be a problem that many people have, but all the answers I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.