Zum Auswählen aller Artikel, die am heutigen Tag veröffentlicht worden sind, kann man bei WordPress ganz einfach mit:
$today = getdate();
$queryToday = new WP_Query(
array (
'year' => $today["year"],
'monthnum=' => $today["mon"],
'day' => $today["mday"],
'orderby' => 'date',
'order' => 'DESC',
'post_status' => array( 'publish')
)
);
while ( $queryToday->have_posts() ) :
$queryToday->the_post();
echo " <a class='todayArticle' href='".get_permalink()."' title='".the_title_attribute('echo=0')."'>".get_the_title()."</a><br>";
endwhile;
wp_reset_postdata();
