Saltar navegación

[Resuelto] Set default category on taxonomy views filter

This support ticket is created 4 years, 11 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
- 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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por benC-15 4 years, 10 months ago.

Asistido por: Minesh.

Autor
Mensajes
#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?
enlace oculto

#2110137

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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!