Skip Navigation

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

This support ticket is created vor 1 Jahr, 4 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Waqar vor 1 Jahr, 4 Monaten.

Assistiert von: Waqar.

Author
Artikel
#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 (versteckter Link).

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: versteckter Link

#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':
versteckter Link

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.

Das Thema „[Geschlossen] Displaying multiple custom post types in global search results“ ist für neue Antworten geschlossen.