Modify date query by URL parameter using pre_get_posts and $_GET
I’m not where I can test this, but for something like: www.website.com/events?date=past, perhaps an approach like that outlined below could work. (I can almost guarantee a type or two, so be sure to rewrite/edit/rework this into your function and ensure you don’t inherit my errors). if (isset($_GET[‘date’])) { //using past, present, future as example. not … Read more