WordPress.org

Forums

League Standings
[resolved] order by rank (8 posts)

  1. radurosca
    Member
    Posted 1 year ago #

    there's a bug on displaying the standings when ordered by rank, teams ranked 10 to 19 are placed before the 2nd ranked team, is there a way to fix this so i don't have to change the ranks from 1..2..3 to 01..02..03?

    http://wordpress.org/plugins/league-standings/

  2. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    That's an easy fix (which I thought I had made). Let me take a look.
    Thanks.
    -Mark

  3. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Hi radurosca,
    Perhaps I'm missing your point but it seems to be working correctly for me. Check out the NASCAR standings on my dev site. If I'm missing something, please send me a link to the problem standings table and a copy of the shortcode incantation you are using to generate it.

    Thanks.
    -Mark

  4. radurosca
    Member
    Posted 1 year ago #

    This is the shortcode:
    [mstw_ls_table league_id="clasament-2014" team_format=both show_rank=1 order_by=rank wins_label=V show_wins=1 show_losses=1 show_ties=0 show_percent=0 show_points=1 points_label=Puncte]

    This is what i get
    http://s24.postimg.org/5oxtq9tqt/image.jpg

  5. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Hummm, I see what you mean. It works on the dev site so something is different in the code. (See link in the above post.) I checked the trunk source code and the magic incantation, 'orderby'=>"meta_value_num", is in get_posts(). So all I can suggest is that you download mstw-league-standings.php from the development trunk on the WordPress.org plugin site.

    -Mark

  6. radurosca
    Member
    Posted 1 year ago #

    i updated the mstw-league-standings.php file with a copy downloaded from the wordpress.org plugin page, it didn't do much i'm afraid.. once i cut the zeroes it fell apart
    http://s10.postimg.org/ifgo03mah/image.jpg

  7. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    I just checked zeros out on my dev site. (See the NASCAR standings at the bottom of this page.)

    Did you take the download from the development version? http://downloads.wordpress.org/plugin/league-standings.zip

    -Mark

  8. radurosca
    Member
    Posted 1 year ago #

    Mark, i must have missed that, i thought the plugin page has the same files. Thank you, that did the trick!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.