WordPress Plugin Documentation

Getting Started

The first step in using MetaBet is installing the WordPress plugin. Check the Plugins page in the WordPress dashboard for your site, and make sure MetaBet Core is installed.

Shortcodes

Our plugin provides shortcodes you can use to add widgets and full-page experiences to your site. Shortcodes are just snippets of text inside square brackets like: [metabet_core_odds_board site_id="" league="nfl"] or [metabet_core_futures_board site_id="" league="nba"].

Embed Catalog

The easiest way to start adding shortcodes to your site is to visit our Embed Catalog. You can browse through Games, Leagues, Teams, and Players, and find the exact widget you'd like to include. Be sure that "WordPress" is the selected format and not "HTML/JS". You can preview Game Tiles, Odd Compare Tiles, Prop/Futures Tiles, and Dyanmic Odds includes, and copy and paste them directly into your site.

Site IDs and Other Modifiers

Each shortcode has default preferences, but you can use modifiers to tweak the behavior of each one. The most important modifier of all, the only one that is required, is site_id. This modifier lets the shortcode know which site it will be running on and which customizations should be loaded up.

There are hundreds of different combinations of modifiers, and we've included examples of how you can use them below. If you're looking for a specific modifier, check out the list at the bottom of this page.

Game Tile

Game Tile for the Next Dallas Cowboys Game
[metabet_core_game_tile query="nfl/cowboys"]
728x90 Game Tile for the Next MLB Game
[metabet_core_game_tile size="728x90" query="mlb"]

Odds Compare Tile

Odds Compare Tile for the Next Kansas City Chiefs Game
[metabet_core_odds_compare query="nfl/chiefs"]
350x300 Odds Compare Tile for the Next NHL Game
[metabet_core_odds_compare size="350x300" query="nhl"]

Prop Tile

Prop Tile for Lebron James
[metabet_core_side_odds_tile query="nba/lebron_james"]
350x350 Prop Tile for the Winner of the NFC North
[metabet_core_side_odds_tile size="350x350" query="nfl/nfl_winner_nfc_north"]

Dynamic Odds

Green Bay Packers to win the NFC North Price
[metabet_core_dynamic_odds query="nfl/green_bay_packers" market="nfl/nfl_winner_nfc_north"]
New York Yankees to win the World Series Price
[metabet_core_dynamic_odds query="mlb/new_york_yankees" market="mlb/mlb_winner"]
Brooklyn Nets Regular Season Win Total Line and Over Price
[metabet_core_dynamic_odds query="nba/brooklyn_nets" market="nba/nba_season_wins"]
Brooklyn Nets Regular Season Win Total Line
[metabet_core_dynamic_odds query="nba/brooklyn_nets" market="nba/nba_season_wins" piece="line"]
Brooklyn Nets Regular Season Win Total Over Price
[metabet_core_dynamic_odds query="nba/brooklyn_nets" market="nba/nba_season_wins" piece="over"]
Brooklyn Nets Regular Season Win Total Under Price
[metabet_core_dynamic_odds query="nba/brooklyn_nets" market="nba/nba_season_wins" piece="under"]

Odds Board

Standard Odds Board
[metabet_core_odds_board]
Start with NFL selected
[metabet_core_odds_board league="nfl"]
Start with MLB selected, showing at most 5 games
[metabet_core_odds_board league="mlb" rows="5"]
Start with Money Line selected
[metabet_core_odds_board market="moneyline"]
Start with the NFL Money Line, pinned to Week 8, and hide the Consensus Column
[metabet_core_odds_board league="nfl" market="moneyline" roundname="Week 8" hide_consensus="yes"]

Futures Board

Standard Futures Board
[metabet_core_futures_board]
Start with NFL selected
[metabet_core_futures_board league="nfl"]
Start with NBA selected
[metabet_core_futures_board league="nba"]
Only show DraftKings, PointsBet, and MGM
[metabet_core_futures_board providers="draftkings, pointsbet, mgm"]
Hide the Consensus Column and the Location Selector
[metabet_core_futures_board hide_consensus="yes" hide_location="yes"]

Parlay Calculator

Standard Parlay Calculator
[metabet_core_parlay_calculator]

Prop Shop

Standard Prop Shop
[metabet_core_side_odds_browser]


Full List of Modifiers


league

Products that have a visible sport or league dropdown can have a default set using this modifier. league="nba" would default the dropdown to NBA and league="nfl" code would default to the NFL.

location

A geographic location can be set by including this modifier. Including location="pa" would only show prices from Pennsylvania, location="nj" would only show prices from New Jersey.

market (Game Tile, Odds Board)

You can set the default market for Tiles or an Odds Board by including market="spread", market="moneyline", or market="overunder". The Odds Board has an additional option, market="smart-moneyline" that will show Money Line for MLB, NHL, and Soccer, but show Spread for every other sport.

market (Odds Compare)

The market modifier lets you choose the line to compare across multiple books. You can choose from market="spread-away", market="spread-home", market="moneyline-away", market="moneyline-home", and market="overunder".

market (Dynamic Odds)

View the full list of supported markets.

market (Futures Board)

You can set the default market for the Futures Board via this modifier, when used along with the league modifier. You can choose a value from the full list of supported markets.

providers

Each site has a pre-configured list of sportsbooks that will be used, but you can override this for any individual shortcode by specifying a list of books in order. Adding providers="draftkings, pointsbet, mgm" to a Game Tile would limit the lines shown to just those three books. Adding it to an Odds or Futures Board would limit the columns to just those three, in that order.

piece

This modifier is used with Dynamic Odds whenever an Over/Under line is being displayed. By default, the Line and the Over price in parentheses will be displayed, for example: 48.5 (-110). If you'd like to show just the Line, just the Over price, or just the Under price, you can include a modifier of piece="line", piece="over", or piece="under".

query

This important modifier tells a Tile what it should display. To have a Game Tile show the lines for the next Cowboys, use query="nfl/cowboys". To have a Prop/Futures Tile show lines for Lebron James, use query="nba/lebron_james". To show lines for a specific market like AL MVP or Winner of the NFC North, the query should be one of our supported markets.

roundname

Use this modifier with an Odds Board to choose the initial round of games to be displayed, like roundname="Week 4", roundname="Week 8", roundname="Preseason Week 3".

rows

This modifier can limit the number of rows displayed. Including rows="10" would limit a product to it's first 10 rows or results.

size

Use this modifier to set the width and height of a Tile, such as size="350x300" or size="728x90". To have a tile span the entire width of a section you can use percentages, like size="100%x150"

style

The default style we use for displaying odds is classic, American-style odds (+200). You can also use style="modern" ($30), style="modern-cents" ($30.00), style="decimal" (3) or style="fraction" (3/1).

hide-consensus

Including hide_consensus="yes" will hide the Consensus column in Odds and Futures boards.

hide-league, hide-market, hide-location

You can use hide_league="yes", hide_market="yes", and/or hide_location="yes" to hide navigation dropdowns in Odds and Futures Boards.