Answers for "wordpress popular posts query"

PHP
-1

wordpress popular posts query

$popularpost  = new WP_Query(array(
    'posts_per_page' => 5,
    'meta_key' => 'wpb_post_views_count',
    'orderby' => 'meta_value_num',
    'order' => 'DESC'
));
Posted by: Guest on June-07-2021

Code answers related to "wordpress popular posts query"

Browse Popular Code Answers by Language