Shows are appearing in order of performance date but shows that have passed remain on the page. It would be great if only the upcoming shows were displayed on the homepage. Then, if the user wanted to see past shows, they could click on a button and be brought to a page with a summary of all. This would make it easier on the band who wouldn't need to take down shows after the performance date.
To accomplish this, you'll need to compare two datetime objects in php and output a post if it show_date is "less than" tomorrow(which will be a defined datetime object).
Shows are appearing in order of performance date but shows that have passed remain on the page. It would be great if only the upcoming shows were displayed on the homepage. Then, if the user wanted to see past shows, they could click on a button and be brought to a page with a summary of all. This would make it easier on the band who wouldn't need to take down shows after the performance date.
To accomplish this, you'll need to compare two datetime objects in php and output a post if it show_date is "less than" tomorrow(which will be a defined datetime object).
Resources -Examples of working with dates in PHP