Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $original_query = $wp_query;
- $wp_query = null;
- $args=array('posts_per_page'=>500, 'tag' => '' . get_the_date('Ymd') . '');
- $wp_query = new WP_Query( $args );
- if ( have_posts() ) :
- while (have_posts()) : the_post();
- echo '<li>';
- the_title();
- echo '</li>';
- endwhile;
- endif;
- $wp_query = null;
- $wp_query = $original_query;
- wp_reset_postdata();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement