Title: atti_simon's Replies | WordPress.org

---

# atti_simon

  [  ](https://wordpress.org/support/users/atti_simon/)

 *   [Profile](https://wordpress.org/support/users/atti_simon/)
 *   [Topics Started](https://wordpress.org/support/users/atti_simon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/atti_simon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/atti_simon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/atti_simon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/atti_simon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/atti_simon/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Query Multiple Taxonomies] found_posts count is wrong if its paginated](https://wordpress.org/support/topic/found_posts-count-is-wrong-if-its-paginated/)
 *  [atti_simon](https://wordpress.org/support/users/atti_simon/)
 * (@atti_simon)
 * [13 years ago](https://wordpress.org/support/topic/found_posts-count-is-wrong-if-its-paginated/#post-3479415)
 * Hi,
 * for plugin version 1.2.6,
    in walkers.php, function count() (line 28):
 * `return $GLOBALS['wp_query']->post_count;`
 * changing `post_count` to `found_posts` seems to correct the selected terms count
   issue, when using pagination on WP.
    At least for me.
 * Code:
 *     ```
       ...
           function count() {
               $old_query = qmt_get_query();
   
               if ( $this->data['is-selected'] ) {
                   //return $GLOBALS['wp_query']->post_count;
       	    return $GLOBALS['wp_query']->found_posts;
               }
   
               $query = array(
                   'tax_query' => array(
       ...
       ```
   

Viewing 1 replies (of 1 total)