This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Accessing the index outside of the search form (e.g. for post loop)

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)

#47098
pbainespbaines
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