我想在过去24小时内显示最受欢迎的分类标准。如何在24小时内显示最受欢迎的分类标准(Wordpress)
网址是像 在管理员:http://domain.com/wp-admin/edit-tags.php?taxonomy=store&post_type=coupon_type
在直播现场:http://domain.com/store/merchant-name
目前使用此代码显示分类
<?php // taxonomies
$id = get_the_ID();
foreach (get_object_taxonomies(get_post_type($id)) as $taxonomy) {
$terms_list = get_the_term_list($id, $taxonomy, '', '<span class="tax-sep">'.__(', ', 'twentytwelve').'</span>','');
if ($terms_list)
{
echo $terms_list;
}
}
?>