Toggle Post Filter, Reset Button – Shortcode Parameters

This button resets the menu of the Toggle Post Filter.

Note: This shortcode is also available as Gutenberg block. You can configure the block without using any code or parameters.


Shortcode #

[tag_groups_tpf_reset]

Example #

[tag_groups_tpf_reset theme="light"]

Data Types #

  • string: A text. For identifiers that won’t be visible to visitors you often have to replace spaces with _ or -. If the string contains spaces, you need to wrap it in quotes.
  • integer: A number without decimal places.
  • 0 or 1: 0 turns the feature off and 1 on.

Parameters #

This overview assumes that you know how to use shortcodes. Shortcodes are the traditional WordPress way how to add features into posts, pages and widgets.

button_text #

Text for the button

DefaultPossible ValuesExample
“Reset filter”stringbutton_text="Show all"

theme #

Select a theme. Currently we have “dark” and “light”.

DefaultPossible ValuesExample
“light”stringtheme="dark"

button_class #

Optional CSS identifier for the button.

DefaultPossible ValuesExample
emptystringbutton_class="my-button"