Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ceviz ms

    (@minasmiroglu)

    Adding

    function mstw_tr_gallery_size( $query ) {
        if ( is_admin() || ! $query->is_main_query() )
            return;
    
        if ( is_tax( 'teams' ) ) {
            // Display up to 120 posts for teams taxonomy archive pages
            $query->set( 'posts_per_page', 120 );
            return;
        }
    }
    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

    (@markodonnell)

    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.

    -Mark

    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 clippersbaseballsouth.com

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

    Plugin Author Mark O’Donnell

    (@markodonnell)

    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.