[Resolved] Archieve search result sorted by meta key does not work if relevanssi activated
This support ticket is created 5 years, 5 months ago. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
But it does not work with toolset wordpress archieve- search result. If i display search result with wordpress archieve- search result. it does not sort search result.
If you are using Relevanssi then it controls the order of results, not Views, ordering them by its assessment of relevancy.
There is a notice in the admin which explains that.
I'd say you know that already.
I'm not sure—I can't tell without digging very deep into the Views source code—how the interplay between Views and Relevanssi works on an archive page. We don't have an API filter for archives to modify/inspect the query arguments in the same way that we have for Views themselves (wpv_filter_query) to compare what the Relevanssi filter describes and what an equivalent Views filter would describe.
I'm setting up a site to test—Relevanssi is taking a good while to index the content—where I can at least confirm what you describe.
I'm not sure if I'll have a solution for you, but I look into it once my test site is up and running.
Sorry, I spoke too soon, I just noticed the internal ticket says the fix is included in Views 2.9.1, it didn't make it into yesterday's release, but will likely be published next week.