Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › re-use query sort order as search order with Ajax Search Pro. › Reply To: re-use query sort order as search order with Ajax Search Pro.
June 11, 2021 at 11:36 am
#33615
Participant
I am working on this now. One piece of information that is missing from the documentation:
https://knowledgebase.ajaxsearchpro.com/hooks/filters/query-and-output/asp_query_args#primary-and-secondary-ordering
You can set the primary search order to
Primary ordering: Custom Field descending
custom field name: views
type: numeric
how would you use that in
$args[‘post_primary_order’] = “relevance DESC”;
?