| 开发者 | gudjon |
|---|---|
| 更新时间 | 2026年7月10日 15:47 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
functions.php required.[gudjons_turneringer limit="50"]
Examples:
[gudjons_turneringer layout="table" fields="date,time,name,venue,badge"][gudjons_turneringer layout="cards" limit="6"][gudjons_turneringer density="compact" limit="5" all_url="/turneringer/"][gudjons_turneringer accent="#0a3d2a" tint="#e6f4ea"][gudjons_turneringer series="torsdagsduellen"][gudjons_turneringer exclude="atlungstad match"]wp-content/plugins/, or install the ZIP via Plugins > Add New > Upload.[gudjons_turneringer] on a page, or use one of the variants above.It is part of the club's Golfbox setup, and is often visible in the URL of the club's Golfbox calendar. Contact your club administrator or Golfbox/NGF if you are unsure.
Yes. On the settings page you can tick fields on or off, and in the shortcode you can set the order with fields="date,name,venue,badge".
Yes, from the settings page (color pickers and font), or per shortcode with accent, accent_soft, tint and font_heading. Everything is built on CSS variables, so your theme can also override .gudjons-turneringer-for-golfbox { --gbt-accent: ... }.
Yes. Copy one of the files in the plugin's templates/ folder (for example list.php, table.php, cards.php) into your-theme/gudjons-turneringer-for-golfbox/ and edit it there. There are also filters such as golfbox_turneringer_entry, golfbox_turneringer_entry_fields and golfbox_turneringer_render_args.
Yes. On the settings page, under "Skjul turneringer", enter a comma-separated text (case-insensitive substring of the tournament name) and/or category IDs — these tournaments are then hidden in every view. You can also hide per shortcode with exclude="some text" and exclude_category="123". Shortcode values are merged with the global setting, and exclusion always wins over series, filter and category.
It is cached for the number of seconds set by "Cache time" (default 30 minutes). The cache is cleared when you save the settings.
exclude (free text, substring match on the name) and exclude_category (Golfbox category IDs), plus a global "Skjul turneringer" section on the settings page. Exclusion always wins over series, filter and category, and shortcode values are merged with the global setting.[gudjons_turneringer] to clearly mark it as a third-party integration (no affiliation with Golfbox).layout="list|table|cards").fields="...") and choices in the admin.golfbox_turneringer_entry, golfbox_turneringer_entry_fields, golfbox_turneringer_render_args.variant="compact" is now density="compact" (the old variant still works).