If no post today, display next future post
I am using the following code to display one, published post on my site.
I need to adjust this to display the next, unpublished post (ie.
'post_status'=> 'future') in the event that there isn’t a post that day.
Example: Admin plugs in 3 posts, one scheduled for Friday, one for Monday, & one for Tuesday (No posts Sat or Sun). On Friday, this section should display the title of Friday’s post. On Saturday, however, it should display the title of Monday’s post. I REALLY feel like this can be done with if statements of some sort. Can it?
- The topic ‘If no post today, display next future post’ is closed to new replies.