Make sure that use of Competitions is enabled when using Match shortcodes.
scm_match_data
[scm_match_data match_id="postid" competition_id="postid" competitor_id="postid" order="ASC_DESC" before="pre-html" after="post-html"]
Lists the Matches for a Match, a Competition, or a Competitor (given by their post-ID). If the Match parameter is provided, the parameters for Competition and Competitor are discarded. If both the Competition and Competitor parameters are provided, it is checked whether the Competitor actually participates in the Competition.
Parameters
- match_id
The post ID of the Match. - competition_id (only considered when match_id is undefined)
The post ID of the Competition. - competitor_id (only considered when match_id is undefined)
The post ID of the Competitor. - order (default: ASC)
Matches are sorted on date. The order can be ASC (earliest date first) or DESC. - before (default: empty)
HTML code that is displayed before displaying the ranking. Typically used in (child) themes only. - after (default: empty)
HTML code that is displayed after displaying the ranking. Typically used in (child) themes only.
scm_match_current
[scm_match_current competition_group_id="postid" competition_id="postid" start="integer" end="integer" emptylist="text" before="pre-html" after="post-html"]
Lists Matches that are scheduled in the specified period relative to today. If the list is empty, an alternate text is presented.
Two drop-down lists control the Competition or Competition Group from which Match data is displayed:
For completed Matches, the score is presented. For scheduled Matches, the date/time of the Match is presented.
Parameters
- competition_group_id (default: undefined)
The post ID of a Competition Group. Only Matches from Competitions in this group are listed. - competition_id (default: undefined)
(considered when competition_group_id is undefined only)
The post ID of a Competition. Only Matches from this Competition are listed. - start (default: 1)
Defines the start of the date window at today minus ‘start’ days - end (default: 1)
Defines the end of the date window at today plus ‘end’ days - emptylist (default: empty)
Alternate text that is shown when there are no Matches in the specified date interval and specified Competition (Group) - before (default: empty)
HTML code that is displayed before displaying the ranking. Typically used in (child) themes only. - after (default: empty)
HTML code that is displayed after displaying the ranking. Typically used in (child) themes only.