Hi
I have installed the PVC (Post Views Counter) Plugin.
After installation I can build a Custom Looper Provider Type as above using get_posts() function:
$args = array(
'order' => 'asc',
'post_type' => 'event',
// required by PVC
'suppress_filters' => false,
'orderby' => 'post_views',
'fields' => ''
);
$most_viewed = get_posts( $args );
It would be possible to use the “post_views” parameter directly inside Cornerstone into a:
- Query Builder
- Query String
to “Order By” the results?
What do you think is the best and lightest solution:
- an external Custom Looper Provider Type?
- an internal Query Builder or Query String with “Order by: post_views” (if possible)?
Please could you also help me in order to undestand the meaning and “How To” of:
Thank You
Daniele