Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m displaying all upcoming matches using shortcodes and Text widget, like this:

    [matches league_id=1 template=sidebar time=next]
    [matches league_id=2 template=sidebar time=next]
    [matches league_id=3 template=sidebar time=next]

    The template I’m using displays the league’s name instead of the word “Match”. To do that just change line 49 in templates/matches.php from

    <th class='match'><?php _e( 'Match', 'leaguemanager' ) ?></th>

    to

    <th class='match'><?php echo($league->title) ?></th>

    Hi, I’ve (probably) the same question – but I want to use the widget display.

    Now I’ve 3 different widget setup (’cause I’ve 3 leagues), and I have to update manually the widget block in homepage to show the next match.

    I don’t want to show all the leagues at the same time, but only my team “next match” (the first in timeline on every league).

    Some ideas?

    Thanks a lot

    I don’t know about the Leaguemanager widget but you probably can do it with a normal Text widget and shortcodes. Try this:

    [matches league_id=League_ID time=next team=Team_ID]

    Your code works, but it’s not what I’m try to do! ??

    I don’t wanna list every matches of my teams, I just wanna the “next match” (like widget do), of different hometown team in every single leagues.

    I try to be more easy with this example:
    there’re 3 leagues (A,B,C) with 11 teams each.
    In every league there’s a “home team” (1,2,3).

    I want see the the “closest” match (in calendar obviously) for one of the home teams.
    But just a single match, not a list.

    I think it is necessary to use the widget code…

    So checking the “home only” box in the widget options doesn’t work for you? Because i don’t really see where your problem lies… If you set it to ‘next game’ and ‘home only’ you shouldn’t have to update the widget manually every time.

    Edit: Now i think i get it, and i think you’ll have to use the widget. I don’t have that problem because i don’t have a fixed calendar for the whole season and I update the next match day after the current one is finished. So for me the shortcodes with ‘time=next’ option display only one game for each team.

    Ummmhh… widget could work fine, but the problem is that you must select only 1 league, and then I must use 3 different widget preset.

    Thread Starter creativeresults

    (@creativeresults)

    My original question is a bit different than your answer provides.
    I want 1 list with the 3 leagues mixed.

    So have a shortcode like:
    [matches league_id=1,2,3 template=sidebar time=next]
    So I get all matches of all the 3 leagues sorted on date in 1 list ??

    Thanks for the time you took to answer!
    Regards,
    Bas.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Overview of upcoming matches from all Leagues?’ is closed to new replies.