I am trying to find a way to make events not appear or come up with some kind of old, archeive or expired message, as we are experiencing som problem with old events coming up and confusing customers.
Would also love help to make front page view of events automatically stop after event date is past.
Kind regards
Erik
I am trying to find a way to make events not appear or come up with some kind of old, archeive or expired message
Hello, if you are using Toolset's Content Templates to design the Event single post pages, the simplest thing you can do is add a conditional block that tests the value of the event date field. If the value is lower than TODAY, you can display some text that says this is an expired event. Conditional Blocks work with nested blocks, and display the nested content when the condition(s) is/are true. We have documentation available for the Conditional Block https://toolset.com/course-lesson/using-toolset-conditional-block/, and I can help you with setting up that conditional block if you need assistance.
If you want to show a 404 or missing page error at the Event post URL when the Event has passed, that is more complex. You would have to change the post status to Trash or delete the post entirely when the event date passes. There is an expiration feature built into Forms that can help trash a post after some expiration date if that post is created in Forms, but if the Event post is created in wp-admin this feature is not available and it would require custom code. The Content Template Conditional Block is a simpler solution.
Would also love help to make front page view of events automatically stop after event date is past.
If I understand correctly, you would like to filter out Events posts from a View when the Event post custom date field has a date that is before today's current date. You can do this by adding a Query Filter based on the custom field value. I just answered a similar question here, perhaps this will help: https://toolset.com/forums/topic/list-of-events/#post-1864781