make shortcodes more versatile
By more versatile, I mean with the ability to add more parameters within the shortcode itself. Specifically, parameters that would limit results by team(s), competitions(s) and season(s).
So for example [player_list id="1234" team="ravens" comp="2014"] would show stats for all players on the ravens in the 2014 season.
As well (and possibly more important) the shortcode should be contextual, in that it could display results based on the page in which it's placed. So if a player list is set to appear on team pages, it could be set to show only the players on that team.
These changes would cut down significantly on the number of lists that need be created, especially for larger leagues with numerous teams, competitions and seasons.
One player list set to display career stats could show a) all stats for all time, b) all stats for all players for one season, c) all stats for players on one team. Or any other filter required.
The same would apply to league tables and event shortcodes.
AdminThemeBoy (CEO / Founder, ThemeBoy) commented
Thanks for contributing! We are always looking for ways to improve SportsPress, so we really appreciate your feedback. Feel free to share this around to get it voted up to the top!