我想在wordpress中制作一个简单的日历。我想每天显示不同的帖子,以当前日期为标签。
例如,我将标签17-01-2017放在三篇帖子中。我想在2017年1月17日将其列为列表。
我有以下代码,运行良好-
<?php 
$wpb_all_query = new WP_Query( \'tag=something\' );
?>
<?php if ( $wpb_all_query->have_posts() ) : ?>
<ul>
    <!-- the loop -->
    <?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>
        <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php endwhile; ?>
    <!-- end of the loop -->
</ul>
    <?php wp_reset_postdata(); ?>
<?php else : ?>
    <p><?php _e( \'Sorry, no posts matched your criteria.\' ); ?></p>
<?php endif; ?>
 但是,我无法更改预设值“something”以显示当前日期,如2017年1月17日。你能帮帮我吗?