Gudjons Turneringer for Golfbox
Gudjons Turneringer for Golfbox fetches a golf club’s upcoming tournaments from Golfbox and displays them in WordPress in the club’s own style, without loading the full Golfbox widget. The plugin is generic and works for any club by setting the club’s customerID . Data is fetched server-side from th
Gudjons Turneringer for Golfbox fetches a golf club’s upcoming tournaments from Golfbox and displays them in WordPress in the club’s own style, without loading the full Golfbox widget. The plugin is generic and works for any club by setting the club’s customerID .
Data is fetched server-side from the Golfbox schedule endpoint, cached with WordPress Transients, filtered and displayed. The same data source and cache are shared by all views on the page.
Main features
- Three layouts: list (rows), table (columns) and cards (grid).
- Field and column selection: choose which fields are shown and in what order: date, time, name, type, venue and status.
- Theming with colors and font: set accent color, soft accent, tint color and heading font, from the settings page or per shortcode. Built on CSS variables, so your theme can override everything.
- Density: normal or compact (great for a front-page box).
- Filtering: by named series, free text search and/or Golfbox category IDs.
- Hide specific tournaments: exclude by free text or category ID, globally from the settings page or per shortcode. Exclusion always wins over the filters above.
- Deep link per tournament — out of the box each tournament links to its own page on Golfbox; optionally link to a calendar page on your own site instead.
- Template override: developers can copy the layout files into the theme and override the markup completely, and use filters.
- Its own settings page, shortcode and template tag. No editing of functions.php required.
Shortcode
Basic usage:
[gudjons_turneringer limit="50"]
Examples:
- Table: [gudjons_turneringer layout="table" fields="date,time,name,venue,badge"]
- Cards: [gudjons_turneringer layout="cards" limit="6"]
- Front-page box: [gudjons_turneringer density="compact" limit="5" all_url="/turneringer/"]