Use the Action Buttons shortcode when you want precise control over where a set appears.
Instead of relying on auto-insert, you can drop your buttons exactly where you want them — inside content, templates, widgets, or even headers.
The basic shortcode #
To display your default Action Buttons set, use:
[hubbub_action_buttons]
The shortcode without an ID or slug uses the default set that Hubbub created when Action Buttons were enabled.
Using a specific button set #
If you’ve created multiple sets of Action Buttons, you can choose exactly which one to display by adding the set’s ID to the shortcode.
How to find your set’s shortcode #
- Go to Hubbub > Action Buttons > Sets.
- Expand the set you want to use.
- In the Shortcode section, click Copy.
That’s it! The shortcode already includes the set’s ID.
Using a set ID or slug #
Multiple sets and the slug attribute require Hubbub Pro 2.31.0 or above.
The shortcode looks like this:
[hubbub_action_buttons id="1234"]
You can also use the set’s slug instead of its ID:
[hubbub_action_buttons slug="recipe-buttons"]
If the set has been moved to the Trash or deleted, the shortcode shows nothing (it won’t break your page). Restore the set from the bottom of the Sets tab to bring the buttons back.
Shortcodes and auto-insert #
In Hubbub Pro 2.31.0 or above, a set placed in a post with its shortcode or as a synced pattern is not also auto-inserted into that post. Other sets whose rules match the post still auto-insert.
Want the auto-inserted copy too? Add allow_injection="yes":
[hubbub_action_buttons id="1234" allow_injection="yes"]
When should you use the shortcode? #
Use the shortcode when you want to:
- Place buttons in a very specific spot in your content
- Add buttons to templates, headers, or widget areas
- Use different button sets on different posts
Quick tips #
- You can use more than one shortcode on a page, including different sets.
- It works in posts, pages, widgets, and most theme areas.
- In the block editor, you can also add a set as a synced pattern: open the Inserter and go to Patterns > My Patterns.