The Shortcode Builder is a visual tool for creating shortcodes without memorizing parameters. Instead of writing shortcode syntax manually, you select a shortcode type and configure options through an interactive form with live preview.

Key Benefits:
- No need to memorize shortcode parameters
- Visual form fields with descriptions
- Live preview shows output before copying
- Parse existing shortcodes to edit them
- Available in both Gutenberg and Classic Editor
Accessing the Shortcode Builder
Method 1: Admin Menu (Recommended)
- Go to Football Leagues β Shortcodes in WordPress admin
- Select shortcode type from dropdown
- Configure options
- Copy generated shortcode

Method 2: Classic Editor Button
When editing a page/post in Classic Editor:
- Click the FL Shortcodes button in the editor toolbar
- Select shortcode type
- Configure in popup modal
- Click Insert to add shortcode
Method 3: Gutenberg Shortcode Block
- Add a Shortcode block to your page
- Open Shortcode Builder from admin menu
- Configure and copy shortcode
- Paste into the block
Using the Shortcode Builder
Step 1: Select Shortcode Type
Use the dropdown at the top to choose which shortcode to configure:
- Core shortcodes β Available to all users
- Premium shortcodes β Marked with orange badge (requires Premium)
Step 2: Configure Options
The form displays all available options for the selected shortcode, organized in collapsible sections:
| Section | Contains |
|---|---|
| General | Main entity selection (club, player, competition) |
| Query | Data filtering (season, competition, date range) |
| Filters | Additional filtering options |
| Display | Layout style, visible columns, ordering |
| Sorting | Sort field and direction |
Field Types:
- Dropdowns β Select from predefined options
- Selectors β Click to open entity picker (clubs, players, etc.)
- Yes/No β Toggle switches
- Numbers β Numeric values (limits, widths)
- Multi-select β Select multiple values, drag to reorder
Step 3: Use Live Preview
The right panel shows a live preview of how the shortcode will appear on your site:
- Click Refresh to update preview after changes
- Use width toggle buttons to change preview size
- Preview loads with your actual site data and styles
Step 4: Copy and Use
- The generated shortcode appears in the Output field at the top
- Click Copy Shortcode to copy to clipboard
- Paste into any page, post, or widget
Editing Existing Shortcodes
The Parse Shortcode feature lets you edit shortcodes you’ve already created.

How to Parse a Shortcode
- Click Parse Shortcode button (next to Copy)
- Paste your existing shortcode in the popup
- Click Parse Shortcode
- Form fields populate with current values
- Modify options as needed
- Copy updated shortcode
Example:
[anwpfl-matches competition_id="5" limit="10"]
After parsing, the form shows Competition ID = 5 and Limit = 10, ready to edit.
Note
If the shortcode tag doesn’t match the selected type, you’ll see a warning to select the correct shortcode first.
Tips & Best Practices
Finding Entity IDs
Many fields require entity IDs (clubs, players, competitions). Two ways to find them:
- Use the Selector β Click the selector field to open a searchable picker
- Check the URL β When editing an item, look at the URL:
post.php?post=123(ID = 123)
Working with Multi-Select Fields
For fields like “Sections” or “Columns”:
- Click to add items
- Drag items to reorder them
- The order in the field = display order on frontend
Tip
Click Reset to clear all form fields and start fresh.
Preview Limitations
Some shortcodes with complex JavaScript (sliders, live scores) may not fully render in preview. These will show a static snapshot or placeholder.
Troubleshooting
Shortcode Shows as Text
Problem: The shortcode [anwpfl-...] appears as plain text instead of rendering.
Solutions:
- In Gutenberg: Use a Shortcode block, not Paragraph
- In Classic Editor: Switch to Text mode (not Visual)
- Check for typos in shortcode name
Preview Not Loading
Problem: Preview panel shows blank or error.
Solutions:
- Click Refresh button
- Check browser console for JavaScript errors
- Ensure WordPress REST API is accessible
Form Not Appearing
Problem: Selecting a shortcode type shows no form.
Solutions:
- Clear browser cache (Ctrl+Shift+R)
- Check for JavaScript errors in browser console
- Ensure plugin is updated to latest version
Copied Shortcode Missing Parameters
Problem: Some parameters don’t appear in copied shortcode.
Note
Parameters with default values are intentionally omitted from output to keep shortcodes clean. Only changed values appear in the generated shortcode.
Related Documentation
- Shortcodes Overview β Introduction to shortcodes
- Core Shortcodes β All core shortcode parameters
- Premium Shortcodes β Premium shortcode parameters
- Gutenberg Blocks β Alternative to shortcodes