I forgot to say tha I’m using a 2.3 version of WP and I’veinstalled a plug-in to show future date posts.
I can even pay for a professional support.
Thanks
Each of your loop requests require a bit of custom querying, but the first is fairly easy:
http://wordpress.org/support/topic/98090#post-488635
The second would be more complicated, but first we need a little defining. Does “current week” mean this week, or the last seven days. They are not always the same time period.
Thank you for you kind support, i’ll try to be more clear.
– First Loop = show the next 24 hours events (posts)
If there are no events go to next 24 hours and so on…
– Second Loop = show next 7 days events (posts)
Thank you again for the attention.
Ciao!
At the moment I’m using this solution:
<?php if ( have_posts() ) { while ( have_posts() ) : the_post(); ?>
<?php $mylimit=60*60*24; //secondi * minuti * ore [* giorni]
if ((get_the_time(‘U’) < (current_time(timestamp) – (get_settings(‘gmt_offset’) * 3600) + $mylimit)) && (get_the_time(‘U’) > current_time(timestamp)) ) {?>
Now I don’t know how to place a second loop that show “next 7 days events” ( posts )
I don’t know what you’re using to display future posts (and what it may react to), but you can try using rewind_posts() after “Today’s events” to reset the loop so you can run through it again.
I don’t know what you’re using to display future posts (and what it may react to)
I’m using “the future is now” plug-in to show future post.
I’ll try your suggestion.
Thanks
Someone could do the second loop?. If they could help me, would be very thanked.