How to set selected attribute on option after filter query?
Ok – it’s not the prettiest way to solve this, but this is what I came up with. Using a combination of session storage and a little javascript. First – I added session_start() to the beginning of my file. Then in query_posts_by_status I added $_SESSION[‘request_status’] = $request_status. This gave me access to the global $_SESSION … Read more