Display Today’s Posts Into WordPress

You can display your today’s post into your wordpress site. This is not a very hard work for you. You simply do it.

You can publish many posts per days. It may be nice to display only today’s posts on a separate page of your wordpress blog. You can do this by php date() function, and the WordPress query_posts() function. Just simply paste the following code where you want to display the ‘today’s posts’.

$current_day = date('j');
if (have_posts()) :
     while (have_posts()) : the_post(); ?>
         // WordPress loop
endif; ?>

If you can do this perfectly you can get output. Try it for your visitor , this is very helpful for visitor to find out the today’s post of a blogsite.