• I am using the following code to display one, published post on my site.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘If no post today, display next future post’ is closed to new replies.