Support » Plugin: Team Rosters » Team players are restricted to 10

  • Resolved ceviz ms


    Hello there,

    First of all, lovely plugin! Thank you for your nice work!
    Have two questions;

    1. Only 10 of the team players are displayed in team page. 11th player is ignored:(
    2. Is there a easy way to add Team column to All Players page?

    Actually first question has a bit importance 🙂

    Thank you for your support!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Adding

    function mstw_tr_gallery_size( $query ) {
        if ( is_admin() || ! $query->is_main_query() )
        if ( is_tax( 'teams' ) ) {
            // Display up to 120 posts for teams taxonomy archive pages
            $query->set( 'posts_per_page', 120 );
    add_action( 'pre_get_posts', 'mstw_tr_gallery_size', 1 );

    to the themes functions.php solved the issue.

    But not player names are not sorted alphabetically? 🙁

    Plugin Author Mark O'Donnell


    Hi cervis ms,
    Glad you found that fix. I believe the WP default is 5, so I suspect yout theme set 10.

    The sort order – alpha or numeric – can be set on the settings page.


    I tried adding this code to the theme functions at the top and at the bottom of the code and it didn’t help. Using presswork at

    Fixed my own problem, it added the code to the bottom of the theme function and it worked, thanks!

    Plugin Author Mark O'Donnell


    Super. Glad to hear it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Team players are restricted to 10’ is closed to new replies.