dfactoryplugins / post-views-counter

Post Views Counter
56 stars 20 forks source link

Include posts with not views in query #28

Open jeanrinvil opened 5 years ago

jeanrinvil commented 5 years ago

Hi,

I use your plugin with WP_Query, and when I use 'orderby' => 'post_views' , it only show posts with views OR posts featured (?)

Can we also show posts with 0 views ?

K-Q-J commented 3 years ago

found it! , simply put add to your WP_Query() 'views_query' => array('hide_empty'=>false)