0

I have been looking for a few days, but am struggling to find the function I need.

I am creating an events post type for a theme, with the event start and finish timestamps saved in respective meta fields. I have been looking to find the function where I can filter events in the wp-admin post list based on time, so I can see only the forthcoming events in the post list, but there is a link to view the past events, similar to how draft or private or trashed posts are filtered. I cannot seem to find the code to do that, and any filters I have found with drop down menus don't seem to be doing anything.

How would you recommend I do this? I've been looking for a couple of days and am not getting anywhere.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.