• Resolved doogi

    (@doogi)


    Can someone please help add ‘squad’ to Players List.

    I tried to make a custom shortcode but it didnt work as seen below

    [player_list 405 columns=”rank,squad,points,kos,bonus,total,ballots”]

    • This topic was modified 2 years, 4 months ago by doogi.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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 2 years, 4 months ago by ozgurgedikli.
    • This reply was modified 2 years, 4 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 2 years, 4 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

    Thread Starter doogi

    (@doogi)

    Thanks. Modified

    Plugin Contributor Savvas

    (@savvasha)

    I am glad you sorted it out ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Squad Number in Player List’ is closed to new replies.