This is my first post in these forums. I’m fairly new to wordpress coding & PHP generally, and I’m at a loss on how to add a particular feature to a custom wordpress site I’m running.
Currently I have a list of upcoming events (based on a custom
eventpost type) which all display on an
archive-event.phppage. I’d like to add the ability to see a list of past events.
I think I understand how to write a query to only show past events based on what I’m doing already. My question is how to create this new page within the template hierarchy of the site?
I’d like to create some new template for past events (
past-events.phpor similar) wordpress only looks at certain files based on the template hierarchy.
Thanks for reading.
- The topic ‘Displaying past & upcoming events separately’ is closed to new replies.