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
event post type) which all display on an
archive-event.php page. 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.php or similar) wordpress only looks at certain files based on the template hierarchy.
Thanks for reading.