Support » Plugin: Query Multiple Taxonomies » Fix posts count when selected term has more posts then ‘posts_per_page’

  • hi,

    it turned out, that when selecting a term, the active terms post count only counts displayed posts, which is the ‘posts_per_page’ count, if there are more posts than that value.

    i found some kind of cutoff in the count function at walkers.php (line 26) for selected items that gets $GLOBALS['wp_query']->post_count.

    i just comment out this three lines and now the counts display is fine:

    /**
     * this cutoff does only count the displayed posts, 
     * not all posts in that term, if they are more then 'posts_per_page'
     * so comenting or removing fixes that bug
     
            if ( $this->data['is-selected'] ) {
                return $GLOBALS['wp_query']->post_count;
            }
    */

    this is for sharing if someone steps into the same thing or someone will someday update this plugin.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fix posts count when selected term has more posts then ‘posts_per_page’’ is closed to new replies.