Accueil › Toolset Professional Support › [Résolu] Sort by relevance
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.
Marqué : Views API, Views plugin
Documentation connexe :
This topic contains 3 réponses, has 2 voix.
Last updated by Luo Yang Il y a 11 mois et 4 semaines.
Assigned support staff: Luo Yang.
I would like to sort results by relevance. I have custom code that is used to display relevance as a percentage, and I would like to use that relevance value to sort the results in a View.
Anglais (English )
Chinois simplifié (简体中文 )
There isn't such kind of built-in feature within Toolset Views/Blocks plugin, Toolset Views plugin is using WP_Query to query posts, see WP document:
There isn't such an option to sort the result by relevance,
You might consider custom codes, for example, use filter hook "wpv_filter_query_post_process" to resort View's result with custom codes, see our document:
When displaying a View listing posts, this filter is applied after the WP_Query has been run.
thanks but I don't have enough php skills to deal with that.
If it's a simple code - I'd appreciate your (or Waqar's) help
if it's too much, i'll give it up
According to our support policy, we don't provide custom codes support
you can also check it with our Toolset certified consultants:
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support