Skip Navigation

[Cerrado] Displaying multiple custom post types in global search results

This support ticket is created hace 1 año, 4 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Waqar hace 1 año, 4 meses.

Asistido por: Waqar.

Autor
Mensajes
#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 (enlace oculto).

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: enlace oculto

#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':
enlace oculto

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.

El debate ‘[Cerrado] Displaying multiple custom post types in global search results’ está cerrado y no admite más respuestas.