• Resolved chihkun

    (@chihkun)


    My theme has a page which list most viewed post

    $wp_query = new WP_Query();
    $args = array( ‘post_type’ => ‘post’, ‘orderby’ => ‘meta_value_num’, ‘meta_key’ => ‘post_views_count’, ‘order’ => ‘DESC’, ‘paged’ => $paged);

    How to change to query from top10 data ?

    Don’t want to use post_views_count anymore
    Because it cannot be updated after cache.

    thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘change my theme query source to top10 data’ is closed to new replies.