Shortcodes
Simple Feature Requests is powered by shortcodes. Let's take a look at them and their parameters.
The Main Shortcode
This shortcode is used to output the requests archive and single request templates. It should be placed on the page you set as your "Archive".
Parameter
Default
Options
Description
sidebar
true
true/false
Display the sidebar as part of the main shortcode output.
submission
true
true/false
True to enable feature request submission form. False to disable feature request submission form.
Example
This will display the simple feature requests archive and single pages without the sidebar included.
The Sidebar Shortcode
If you use the main shortcode without a sidebar, you can use this shortcode to place the full sidebar wherever you like.
The Widget Shortcode [Pro]
If you don't want to output the full sidebar, you can use the widget shortcode to display specific elements of the sidebar.
Parameter
Default
Options
Description
type
login/top-requests/taxonomy
Display the login, top requests, or taxonomy widgets.
taxonomy
The taxonomy slug, e.g. request_category
Used when type
is set to taxonomy
. If no taxonomy is set, it will display all taxonomies. By default it will only show categories, but you can add more using the jck_sfr_taxonomies
filter.
Example
This will display the category widget.
This will display the top requests widget.
The Roadmap Shortcode [Pro]
This shortcode displays a card-themed roadmap of your feature requests. Perfect for letting your customers get a birds-eye view of where your product is heading.
Parameter
Default
Options
Description
status
under-review,planned,started
Comma-separated list of requests statuses.
Choose which statuses to feature in your roadmap.
limit
3
integer
How many requests to show for each status.
cols
3
integer
How many columns to use.
term_[taxonomy_name]
Comma-separated list of term slugs.
Restrict requests to specific taxonomy terms.
Example
Display 3 columns for requests which are under review, planned, or started.
Limit requests on the roadmap to those in request categories 1 and 2.
Limit requests on the roadmap to those tagged with the terms term-1
and term-2
in a taxonomy called custom_taxonomy
. The term_[taxonomy_name]
parameter accepts a list of comma-separated term slugs.
Last updated