I know that you can show future entries, but how can I not show a future entry once the date has arrived? I have an “upcoming content” section that I want only future entries.
Thanks
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 19, 2012 4:42pm
Subscribe [4]#1 / Jun 19, 2012 4:42pm
I know that you can show future entries, but how can I not show a future entry once the date has arrived? I have an “upcoming content” section that I want only future entries.
Thanks
#2 / Jun 20, 2012 12:49am
http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html#show-expired
Use the channel entries parameter: show_expired=“no” AND make sure that in the publish page, each entry has an expiration date. Set it for a minute after the entry_date, if you want.
#3 / Jun 20, 2012 1:47am
I see what you are saying however if I put an expiry date, then on my home page where I also list the latest posts, wouldn’t my posts be hidden there as well?
#4 / Jun 20, 2012 2:19am
You can use show_future_entries and start_on like this:
{exp:channel:entries channel="{my_weblog}" sort="desc" start_on="{current_time format='%Y-%m-%d %H:%i'}" show_future_entries="yes"}Check out: http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html#start-on
This way you don’t have to expire entries.
#5 / Jun 20, 2012 2:43am
That looks like it did the trick!
Thanks!
#6 / Jun 20, 2012 12:44pm
Hey Danny Valle,
Glad to hear it! Nice work all!
If you need anything else, please just let me know by opening a new thread.
Cheers,