orderby post_views is not 'recognized' in pre_get_posts
-
I use pre_get_posts() to manipulate some post listings.
One of them is our FAQ, which is a post type archive and can be seen on https://internationaldownhillfederation.org/faq/
Right now it’s ordered randomly, but I would like to have the most viewed topics on top.
This is the code I use, but apparently it’s not recognised because if I use it, the posts get ordered by post_date.
- The topic ‘orderby post_views is not 'recognized' in pre_get_posts’ is closed to new replies.