Sort by last 7 days in post list

My post list design is good. But the list sorted by popular and it not working. Please see my code below and shed some l

My post list design is good. But the list sorted by popular and it not working. Please see my code below and shed some light on it. I want to sort my posts by their popularity by views of last 7 days. Here is my code:

<?php
$params = array(
    'orderby'             => 'popular',
    'post_type'           => 'post',
    'ignore_sticky_posts' => 1,
    'posts_per_page'      => 4,
    'no_found_rows'       => true,
);
$query_data = pixwell_query($params);
while ($query_data->have_posts()) :
    $query_data->the_post();
    pixwell_post_list_4();
endwhile;
?>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744883350a4598972.html

相关推荐

  • Sort by last 7 days in post list

    My post list design is good. But the list sorted by popular and it not working. Please see my code below and shed some l

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信