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.

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.