• Hi,

    I am trying to display a single team table on the frontend. It essentially would replicate the edit-team page where it shows the table columns for each season-league that the team is involved in.

    It seemed like sp_get_template(team-table.php) would work but no dice.

    I even looked through the code to try to get an understanding of how it is pulling the total stats together but I couldn’t find where in the database a total is stored (does it aggregate it upon display from multiple sp_results?).

    Is there an easy way to do this? Or where can I find the code that populates the edit-team page?

    PS: I don’t have a Pro license because this is a side project that I am not getting paid for and $99 is a lot out of pocket.

    https://wordpress.org/plugins/sportspress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Roch

    (@rochesterj)

    Hi!

    It’s summing all the results for a club. There isn’t a field with the “total” for a club, it’s generated on the fly.

    But would you mind explaining a bit more your desired result? Maybe it’s possible with something easier like a shortcode and the do_shortcode function

    Kind Regards,
    -Roch

    Thread Starter sam104573

    (@sam104573)

    Essentially I am just trying to replicate the League Results that you see in the backend when you go to edit the team. It’s essentially a League Table but with one row (that row being the Team of whatever Team page you are on).

    I don’t have any players on Team’s right now but I want users to be able to see how their team is fairing in the League/Season.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Team Table Columns’ is closed to new replies.