Skip Navigation

[Resolved] Custom taxonomy filter adjusting the empty top filter option to display "All"

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 3 months ago.

Assisted by: Waqar.

Author
Posts
#1310951

My client wants me to change the empty top filter option and show the text "all" to filter and show "all" results (in this case let's say in the "productgroepen" filter). How to do this (if possible)

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

#1311201

Hi there,

Thank you for contacting us and I'd be happy to assist.

The "wpv-control-post-taxonomy" shortcode which is used to generate the taxonomy filter supports a "default_label" attribute, which can be used for adding a default value's label.
( ref: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-post-taxonomy )

For example, if your view has this shortcode for the "Productgroepen" filter:


[wpv-control-post-taxonomy taxonomy="productgroep" type="select" url_param="wpv-productgroep"]

It will become:


[wpv-control-post-taxonomy taxonomy="productgroep" type="select" url_param="wpv-productgroep" default_label="All"]

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar