WordPress.org

Ready to get started?Download WordPress

Forums

Unconfirmed
Pagination for single site (1 post)

  1. Sajjad Hossain
    Member
    Posted 2 years ago #

    When installed in single site the pagination is not showing properly. That is because of the total record count. I have made the following change and its working now.

    if($this->is_multisite){
         $sql['select'] = str_replace( "SELECT *", "SELECT COUNT(*)", $sql['select'] );
     }
     else{
         $sql['select']  = "SELECT COUNT(u.ID) FROM $wpdb->users u INNER JOIN $wpdb->usermeta um ON ( u.ID = um.user_id )";
    }

    http://wordpress.org/extend/plugins/unconfirmed/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Sajjad Hossain
  • This topic is not resolved
  • WordPress version: 3.4.1