Navigation überspringen

[Gelöst] Set default category on taxonomy views filter

This support ticket is created vor 4 years, 11 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von benC-15 vor 4 years, 11 months.

Assistiert von: Minesh.

Author
Artikel
#2109919

Tell us what you are trying to do?
Hi I want to set the Taxonomy filter default value, instead of ALL I want to automatically selects the custom taxonomy I have (Current artists) on page load.

What is the link to your site?
versteckter Link

#2110137

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To set the default taxonomy term on page load you will have to use the custom Javascript/jQuery.

For example:

jQuery(document).ready(function($){

$("#artist-status-current-artists").prop("checked", true).change();

});
#2114023

My issue is resolved now. Thank you!