I'm a girl and excuse my English. Maybe its easy and I'm dumb to know it.
But here is the problem
I want to output on the homepage the posts from the lastest 3 days.
Like this:
30/03/12
post 1
post 2
post 3
29/03/12
post 1
post 2
post 3
28/03/12
post 1
post 2
post 3
I tried:
$loopday = '';
if ( have_posts() ) : while ( have_posts() ) : the_post();
if ($loopday !== get_the_time('D M j')) {
$loopday = get_the_time('D M j');
echo $loopday;
}
the_title();
the_content();
endwhile; endif;
But this code only orders the latest 10 posts. For example:
On 30/03/12 I have 5 posts
On 29/03/12 I have 4 posts
On 28/03/12 I have 3 posts
So the 3rd day is missing now 2 posts.
Also I want to use this on the archive page.
3 days a page.
On page 2 the next 3 days.
I'm really hopeless..
xx