Saltar navegación

[Resuelto] Sort search results with particular taxonomy first

This support ticket is created hace 2 años, 11 meses. 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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Zona horaria del colaborador: Asia/Karachi (GMT+05:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por jamesR-13 hace 2 años, 11 meses.

Asistido por: Waqas.

Autor
Mensajes
#2426877

Tell us what you are trying to do?

I have a custom view displaying a custom post type with custom taxonomies. I want to show results with a particular taxonomy before all other results.

What is the link to your site?
enlace oculto

#2427207

Waqas
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

As per my understanding, you need 2 different views:

1) Showing the results for that particular taxonomy and placed first for display.
2) Showing rest of the results, excluding the taxonomy from View #1 and placed after #1 for display.

Please see https://toolset.com/documentation/legacy-features/views-plugin/filtering-views-by-taxonomy/ for details on "Filtering Views Query by Taxonomy".

Let me know if it helps resolved the issue or I'll try my best to further assist you on the matter.

Regards.

#2427229

How would this work on a setup that shows search on one page and results on a separate page?

#2427247

My issue is resolved now. Thank you!