WordPress.org

Forums

Game Schedules
[resolved] Controlling order of Results (6 posts)

  1. Jerry
    Member
    Posted 1 year ago #

    Mark

    Great plugin.

    http://goroughriders.wpprod.yc.edu/ - Please note in the right sidebar there is a "Roughrider Scoreboard - Final Scores and Results"

    There are 4 results (I used shortcode to control how many to show). But I'd like to show the last four most recent scores / results ... right now by default it's showing the 1st 4 results.

    How could I make the list start with the most recent date -- or the last or most recent dates...

    <h5>Final Scores and Results</h5>
    [mstw_gs_table sched='2014-volleyball-schedule,2014-baseball-schedule,2014-softball-schedule,2014-soccer-schedule' show_media=0 show_location=0 opponent_label='Final Results' last_dtg='now' time_label=' ' table_date_format='M j' games_to_show=4 date_label=' ']

    Here is my shortcode:

    https://wordpress.org/plugins/game-schedules/

  2. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Jerry,
    Thanks for writing. I see you found 'now'. It was intended for the first_dtg, not the last_dtg. I never thought of what you suggest because I've always thought 'future' not 'history'. It can't be done right now, other than by regularly modifying the start and end dtg's. But I like it and I will add it to 'the list' for the next release. If you would like some bespoke changes quicker, please contact me through shoalsummitsolutions.com

    Regards,
    -Mark

  3. mallard66
    Member
    Posted 1 year ago #

    Hi Mark, Jerry,

    just chiming in to say I'm also looking for a way to display the result of the latest games. I tried fiddling with complex css selectors to supress all but the last row but I didn't find the right syntax I guess. I look forward to trying out the new functionality once it's ready.

    -Anders

  4. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks guys. I'll have something for you in the next release.

  5. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Anders, Jerry,
    I added this to the development trunk in the SVN repository on WordPress.org. You set last_dtg = 'now', leave first_dtg blank, and set the games_to_show to what you want. It will display games_to_show games in reverse chronological order. See the MSTW Dev Site for an example.

    -Mark

  6. Jerry
    Member
    Posted 1 year ago #

    Thanks for the update. I'm going to get it going, now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.