Hi;
Adding teams to the columns for the team should be enough
[player_list 405 columns=”rank,team,points,kos,bonus,total,ballots”]
-
This reply was modified 3 years, 6 months ago by
ozgurgedikli.
-
This reply was modified 3 years, 6 months ago by
ozgurgedikli.
Thread Starter
doogi
(@doogi)
when I add the ‘team’ to the columns it just adds the team name not the squad number.
Plugin Contributor
Savvas
(@savvasha)
Hi @doogi ,
Instead of rank did you try to use number?
https://snipboard.io/GVHA1O.jpg
https://snipboard.io/XFPQk1.jpg
Your shortcode should be like: [player_list 405 columns=”number,squad,points,kos,bonus,total,ballots”]
Thanks,
Savvas
Thread Starter
doogi
(@doogi)
Yes Im sorry I am using NUMBER.
But when I add SQUAD it still does not display squad
[player_list 405 columns="number,squad,points,kos,bonus,total,ballots"]
Plugin Contributor
Savvas
(@savvasha)
What are you waiting to see with “squad”? Is it something different than team?
Thanks,
Savvas
Thread Starter
doogi
(@doogi)
Because the quick shortcodes is working I was able to use it to generate a shortcode for what I wanted to display…
[player_list id="405" title="Rankings" columns="number,points,kos,bonus,total,ballots" orderby="number" order="DESC" show_all_players_link="0" align="none"]
But as soon as I change the orderby to TOTAL the results SQUAD number is replaced by RANK. Which kinda makes sense, but I would like to sort by TOTAL.
[player_list id="405" title="Rankings" columns="number,points,kos,bonus,total,ballots" orderby="total" order="DESC" show_all_players_link="0" align="none"]
https://imgur.com/Muax16e
-
This reply was modified 3 years, 6 months ago by
doogi.
Plugin Contributor
Savvas
(@savvasha)
Hi @doogi ,
Unfortunately this is the default way SportsPress handles the Player Lists. You will need to copy the template file player-list.php from wp-content/plugins/sportspress/templates/ to wp-content/themes/your-child-theme/sportspress/ and alter the lines where Ranks is overriding Squad Number.
For example for the heading you need probably to alter the code between lines 176-183.
Thanks,
Savvas
Plugin Contributor
Savvas
(@savvasha)
I am glad you sorted it out 🙂