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".

[simple-feature-requests]

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

[simple-feature-requests sidebar="false"]

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.

[simple-feature-requests-sidebar]

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.

[simple-feature-requests-widget type=""]

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

[simple-feature-requests-widget type="taxonomy" taxonomy="request_category"]

This will display the category widget.

[simple-feature-requests-widget type="top-requests"]

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.

[simple-feature-requests-roadmap]

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

[simple-feature-requests-roadmap limit="3" status="under-review,planned,started" cols="3"]

Display 3 columns for requests which are under review, planned, or started.

[simple-feature-requests-roadmap term_request_category="category-1,category-2"]

Limit requests on the roadmap to those in request categories 1 and 2.

[simple-feature-requests-roadmap term_custom_taxonomy="term-1,term-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.