• Can I change the Event Results columns to order/sort by a different label? Currently it sorts by Team name and I want it to order by another column called Score.

    • This topic was modified 7 years, 3 months ago by dasbrow.
    • This topic was modified 7 years, 3 months ago by dasbrow.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Roch

    (@rochesterj)

    Hi!

    Thanks for reaching out!

    How are you showing the event results? Are you using a shortcode?

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter dasbrow

    (@dasbrow)

    Not sure I guess, here is a link to the site’s event:

    https://crumlinppc.org/?sp_event=august-monday-night-mini-match-2017

    Roch

    (@rochesterj)

    Hi!

    Thanks for your example.

    That is the event page so there’s no shortcode there indeed.

    It’s certainly possible to change that, but it requires some custom code in your theme. In your case you’ll need to change the default output for the results table with a custom function.

    Thanks!

    Kind Regards,
    -Roch

    Hi Roch,

    I’m also still searching for a solution for this. Tried to fiddle around with some coding myself but just can’t figure it out.

    Before the last update off sportspress I was able to order the results by just select them in a specific order. Since the last update it automatically orders the teams based on alphabet.

    Is this code written in the functions off the theme(rookie theme in my instance), or is it written within the plugin?

    Can you give us some info?

    Website link:
    https://uitslagen.rtvdezwaluwen.nl/event/dac-2017-a-17/

    Thanks!

    Roch

    (@rochesterj)

    Hi!

    Thanks for your message!

    This is part of the plugin, but you’d need a bit of custom code in a child theme to reorder that.

    Thanks!

    Kind Regards,
    -Roch

    Hi,

    After some time I fixed it(finally).

    Installed a plugin called tablesorter to do the job. Had to adjust some coding in event-results.php to get it to work nicely within the sportspress plugin.

    Roch

    (@rochesterj)

    Hi!

    That’s great, thanks for sharing that. I’ll certainly save this as a future reference.

    Kind Regards,
    -Roch

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Order “Event results” columns’ is closed to new replies.