Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Accessing the index outside of the search form (e.g. for post loop) › Reply To: Accessing the index outside of the search form (e.g. for post loop)
February 27, 2024 at 4:15 pm
#47099
Keymaster
Sure Peter!
The custom field order is a bit tricky, I don’t think it’s documented either, but this should work:
'post_primary_order' => 'customfp DESC',
'post_primary_order_metatype' => 'numeric',
'_post_primary_order_metakey' => 'post_views_count',