Banner for Paginate
Display your list with pagination by a simple function call. Wordpress Tutorial
Noted That:
  • To install correctly this paginate.zip .
  • Fisrt Download the paginate.zip to your computer
  • Extract/Open paginate.zip to Your Computer.
  • Then, Find readme.txt file inside paginate.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " paginate.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Paginate

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Paginate

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Paginate

Step-5 : Now, Browse " paginate.zip " Downloaded plugin from your computer, Where you downloaded " paginate.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Paginate

Step-6 : Now, Click on " Active Plugin "

Activate Paginate

Step-7 : Then, See left Side Menu. " Paginate " folder is added on left Side Menu. Now, Click on " Paginate " folder.

Noted that: If you do not see " Paginate " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Paginate Configurations and Settings or How to work " Paginate " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Paginate " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Paginate
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Install and Activate

  1. Download and unzip paginate.zip .
  2. Upload the paginate directory to the /wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins menu in WordPress.
  4. In your theme, modify the CSS file to change the look and feel of your pagination.

Implement

3 line implementation



get_var("SELECT COUNT(ID) FROM $wpdb->
users");
$p = new paginate($totalitems);
echo $p->
get_pagination();
?>

Post onpage argument



get_var("SELECT COUNT(ID) FROM $wpdb->
users");
$p = new paginate($totalitems);
echo $p->
get_pagination($onPage);
?>

Example implementation



get_var("SELECT COUNT(ID) FROM $wpdb->
users");
$p = new paginate($totalitems);
$limit = $p->
itemsPerPage;
$offset = $p->
get_offset();
//your query. add the offset and limit to the query
$query = "SELECT $wpdb->
users.ID FROM $wpdb->
users LIMIT $offset, $limit";
$user_ids = $wpdb->
get_results($query);
//your loop
foreach($user_ids as $id) { //do something...
}
//pagination html
echo $p->
get_pagination();
?>


Name