WordPress.org

Forums

SportsPress - Manage Leagues & Sports Clubs
[resolved] Sort squad of players (9 posts)

  1. DiegoTerrones
    Member
    Posted 11 months ago #

    Hi, I'm using this great plugin on a website of a professional team of Spanish football.
    I have a question: how I can set the list of players the following order, PORTEROS, DEFENSE, midfielders and forwards.?
    I tried, but when the order therefore selected for the above position rather than out in the order indicated, positions positions ordered by alphabetical order.

    It is ordered as follows:

    - Midfielders
    - Defenses
    - Forwards
    - Janitors

    but I want it to be as follows:

    - Janitors
    - Defenses
    - Midfielders
    - Forwards

    I do not know if I have explained well.

    A greeting.

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

  2. ThemeBoy
    Member
    Plugin Author

    Posted 11 months ago #

    @DiegoTerrones Great question. The positions are actually ordered alphabetically by slug, so a good technique is to change the slug for each position. For example,

    Name: Goalkeeper
    Slug: 1-goalkeeper

    Name: Defender
    Slug: 2-defender

    Name: Midfielder
    Slug: 3-midfielder

    Name: Forward
    Slug: 4-forward

    The slugs can be modified via Players > Positions > Edit. I hope this makes sense :)

  3. DiegoTerrones
    Member
    Posted 11 months ago #

    thank you very much for your quick reply, but it did not work.

    I leave the url of the web for you to see for yourself.


    http://www.lorcadeportiva.es/club/plantilla/

  4. Ttemplate
    Member
    Posted 11 months ago #

    hi DiegoTerrones

    can you please tell me how you create this list?

    i also want to do it.

    thanks!

  5. ThemeBoy
    Member
    Plugin Author

    Posted 11 months ago #

    @DiegoTerrones Thank you for the link. It seems that positions were ordered by slug only in our Premier theme and not in the plugin itself. I've fixed this and just released SportsPress version 1.1.8, which automatically orders positions by slug. You'll see the correct order once you update to the new version :)

    @Ttemplate I'll chime in here to help. When creating a list, select "Position" from the "Grouping" dropdown to display players in groups according to their position.

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

  6. DiegoTerrones
    Member
    Posted 11 months ago #

    @Themeboy Now yes, thank you very much for your help.
    a greeting

  7. ThemeBoy
    Member
    Plugin Author

    Posted 11 months ago #

    @DiegoTerrones Glad to hear that :)

  8. Ttemplate
    Member
    Posted 11 months ago #

    hi

    i have changed the slug, but the order still didn't changed.

    how can i fix it?

  9. ThemeBoy
    Member
    Plugin Author

    Posted 11 months ago #

    @Ttemplate have you updated the plugin to version 1.1.8?

Reply

You must log in to post.

About this Plugin

About this Topic