Forums › Forums › Search & Filter Pro › Initial Results Order Not Working
Tagged: default order
- This topic has 4 replies, 3 voices, and was last updated 2 years, 4 months ago by Anonymous.
-
Anonymous(Private) December 10, 2020 at 11:41 am #269382
Hi There, the filters are working well other than the fact that I have set the default order to be “Title”, but the results seem to be based off of an internalized order instead (neither slug, nor date).
I have tried rebuilding the cache, however it still does not work as expected.
Any help you can provide would be greatly appreciated.
https://stgmohmuseum.wpengine.com/recipient-database
(Titles are based off of [Last Name], [First Name] )
Trevor(Private) December 10, 2020 at 12:22 pm #269387Do the results go in the correct order after a search?
In the initial order, do they appear to be in last created first (or the reverse)?
Do you have any ‘order’ type plugins (like Post Types Order) or do you use any code that uses the WordPress
pre_get_posts()
function?Anonymous(Private) December 10, 2020 at 8:53 pm #269490I don’t think I have pre_get_posts set up anywhere, however I am using a post types order, but have disabled it, and it is still in the wrong order.
Any suggestions for an overwrite or workaround? I can rewrite the pre_get_posts manually if that would help.
Trevor(Private) December 11, 2020 at 7:38 am #269510There is some guidance on this page:
https://searchandfilter.com/documentation/search-results/custom/#pre-get-posts
You might also experiment by deactivating other plugins, to see if they are the cause.
-
AuthorPosts