Displaying past & upcoming events separately
-
Hello world!
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 anarchive-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.My site is live at: https://www.artsrestore.la
And the code for the events archive page is here: https://gist.github.com/egardner/7324310Thanks for reading.
- The topic ‘Displaying past & upcoming events separately’ is closed to new replies.