x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

Start On Today

Question:

How can I grab the next n number of day’s entries starting on the current day?

Answer:

Start on for recent content - related article.

<?php 
global $LOC
$current_time gmdate('Y-m-d H:i A' $LOC->now); 
?> 

{exp
:weblog:entries weblog="{master_weblog_name}" display_by="day" limit="7" 
sort="asc" show_future_entries="yes" start_on="<?php echo $current_time; ?>"

You’ll need the template containing this to have PHP set to Input.

Category:Templates Category:Entries Category:PHP

Source

Category:EE1

Categories: