📜  wordpress 热门帖子查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.609000             🧑  作者: Mango

代码示例1
$popularpost  = new WP_Query(array(
    'posts_per_page' => 5,
    'meta_key' => 'wpb_post_views_count',
    'orderby' => 'meta_value_num',
    'order' => 'DESC'
));