Sauter la navigation

[Résolu] Sort search results with particular taxonomy first

This support ticket is created Il y a 2 années et 10 mois. 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 -
- - - - - - -

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

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par jamesR-13 Il y a 2 années et 10 mois.

Assisté par: Waqas.

Auteur
Publications
#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?
lien caché

#2427207

Waqas
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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!