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 3:50 pm
#47098
Participant
Hi Earnest,
Sorry, one more quick question on this thread!
I have another slider, and I need to sort it numerically by views. Each page/post should have post meta for views, with the key ‘post_views_count’ and a numerical value.
I’ve tried using the following, but keep returning no results. Is there anything else I need to add here?
‘post_primary_order’ => ‘post_views_count DESC’,
‘post_primary_order_metatype’ => ‘numeric’,
‘_post_primary_order_metakey’ => ‘post_views_count’,
Many thanks,
Peter