• Goodnight. Sorry to write by this means. I am something new using Sportpress but I am trying to create a custom list.

    I am putting together a website about baseball and I want to create a list of players that meets a conditional

    For example, a list that shows the players that their AB are equal to or greater than the result of the total number of Games Played by the team multiplied by 2.7 which is the way to show batting leaders according to MLB rules

    Sorry if my English is not very good. I am currently working on Localhost

Viewing 3 replies - 1 through 3 (of 3 total)
  • Roch

    (@rochesterj)

    Hi!

    Unfortunately, this stat would require some custom work. The hardest part there is comparing the player stat with the team stats, as a lot of variables can come into play.

    Thanks!

    @domingobacaardon

    If all the stats that you need are already being entered into the SportPress stats per player, then you can write your own function and add it to your theme in the functions.php

    A good starting point would be to see how the current functions are being implemented :
    https://github.com/ThemeBoy/SportsPress/blob/master/includes/sp-core-functions.php

    You will need to update several files in order to properly accommodate for this, however the main file would be to copy the /templates/player-statistics-league.php file into your child theme. Personally I would register a new file for this, but you could also make the updates directly to player-statistics-league.php.

    Roch

    (@rochesterj)

    That’s amazing, thanks for the help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom player list with conditionals’ is closed to new replies.