Head to Head Team Stats

Premium Version Only (since v0.12.2)

Image 3048

[anwpfl-stats-h2h club_a="" club_b="" competition_id="" multistage="0" season_id="" league_id="" date_before="" h2h_only="1" highlight_best="1" per_game="1" stats="" header=""]

  • club_a – (required) - Club ID
  • club_b – (required) - Club ID

Shortcode Arguments - Filter

  • competition_id – (optional) - Competition ID.
  • multistage – (optional) - 0/1 (no/yes). Set this argument to "1" if you want to include all stages of multistage competition. Works only when "competition_id" is Multistage Competition (Main Stage)
  • season_id – (optional) - Season ID.
  • league_id – (optional) - League ID.
  • date_before - (optional) - format YYYY-MM-DD - Get stats till this date

Shortcode Arguments - Display

  • h2h_only – (optional) - 1/0 - get stats for head-to-head games only (1) or for all games (0)
  • highlight_best – (optional) - 1/0 (yes or no) - highlight best value
  • per_game – (optional) - 1/0 (yes or no) - show per game statistics
  • stats – (optional) - comma-separated list of stats. Available options: 'corners', 'fouls', 'offsides', 'shots', 'shots_on_goal','cards_y','cards_r','goals','goals_conceded','clean_sheets'

Shortcode Arguments - Text

  • header – (optional) - header text

Text Strings

You can override text strings in "Settings & Tools" >> "Text Options"

Image 3049

Perfect!

Can we use a %league_id% shortcode option?

It doesn't work

Yes, you right. League ID is ignored in Match Layout.

-

If you can edit PHP files, create a private ticket, and I'll tell you a few lines of code to change. Or wait for the next release.