WordPress.org

Support

Support » Plugins and Hacks » Football Pool » [Resolved] Only one team matches listing

[Resolved] Only one team matches listing

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AntoineH

    @antoineh

    Hi,
    There is no out-of-the-box solution for this. But a team page only shows the matches for a particular team. Is this what you want? If so, you can copy that code to a page of your own.

    Example:

    <?php
    // $team_id must be an integer corresponding with the database ID of the team
    $team = new Football_Pool_Team( $team_id );
    $team->get_plays();
    $plays = $team->get_plays();
    if ( count( $plays ) > 0 ) {
    	$matches = new Football_Pool_Matches;
    	$matches->print_matches( $plays );
    }
    ?>

    So many thanks. That’s work! 🙂

    One more question. I want The next prediction widget modificate so that only one team matches are counted back. Solvable?

    Thank You Forward.

    Plugin Author AntoineH

    @antoineh

    That would be a small change to some files. I’ll include it in my next version.

    p.s. previous code contained a line that isn’t needed for the code to work. I guess a copy-paste error.

    <?php
    // $team_id must be an integer corresponding with the database ID of the team
    $team = new Football_Pool_Team( $team_id );
    $plays = $team->get_plays();
    if ( count( $plays ) > 0 ) {
    	$matches = new Football_Pool_Matches;
    	$matches->print_matches( $plays );
    }
    ?>

    Hello AntoineH,
    I try to use the matche widget in my website but the next matche and the previous matche doesn’t appear in the widget. i have the messages “no previous matches” ans “no Upcoming matches” but I’m sure i have 16 matches in the data base. how can u help me please. Give me an idea.
    waitting ur answer.
    once again congratulation

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Only one team matches listing’ is closed to new replies.
Skip to toolbar