Bỏ qua cache css trên wordpress
23/07/2024
12/02/2023 - 198
<div class="widget"> <h3> Bài viết xem nhiều </h3> <div class="content-w"> <ul> <?php $getposts = new WP_query(); $getposts->query('post_status=publish&showposts=8&post_type=post&meta_key=views&orderby=meta_value_num'); ?> <?php global $wp_query; $wp_query->in_the_loop = true; ?> <?php while ($getposts->have_posts()) : $getposts->the_post(); ?> <li> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> </li> <?php endwhile; wp_reset_postdata(); ?> </ul> </div> </div>