Skip Navigation

[Fermé] Displaying multiple custom post types in global search results

This support ticket is created Il y a 1 année et 4 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

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

Dernière mise à jour par Waqar Il y a 1 année et 4 mois.

Assisté par: Waqar.

Auteur
Publications
#2623691

I want to accurately display multiple post types (some are CPTs) in the global search results, but the results aren't accurate. For example, "John Paul" is in the title of many products in this site but those products don't really show up high in the results, yet lots of others show up in the results that aren't relevant (lien caché).

I have Relevanssi installed and I have this global search set up in a view, but I'm thinking there's some conflicts here... for example I don't have the option to sort by "relevance" in the view but that's what's set in Relevanssi.

Should I be doing this differently? I feel like I'm missing some things and just need a little guidance here.

You can access the search functionality on any page by clicking the search icon in the upper-right menu: lien caché

#2623995

Hi,

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

Based on what you've shared, I understand that you'd like to give more 'weight' to the post titles, while calculating the relevancy of the results.

You can find more information about the 'Weights' settings in this official guide from 'Relevanssi':
lien caché

regards,
Waqar

#2624123

Thanks Waqar,

I have all of that set up already. I think one of the main issues I'm running into is the sort order. The Toolset View is set to sort primarily by published date, and that's overriding the relevancy established in Relevanssi. Any way to change this? I didn't immediately find anything when looking, but I'm probably not thinking things through very well...

#2625671

Thanks for writing back.

I've performed some tests on my website with Relevanssi and noticed that both in the views and the WordPress Archives, the ordering setting is controlled by the Relevanssi. It doesn't matter what is set in the archive or view's own 'Order' settings.

In case you're still experiencing different results, you're welcome to share temporary admin login details, along with the exact steps, to see the difference.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

Le sujet ‘[Fermé] Displaying multiple custom post types in global search results’ est fermé à de nouvelles réponses.