Support

Account

Home Forums Backend Issues (wp-admin) How to hide past events in WordPress admin screen Reply To: How to hide past events in WordPress admin screen

  • @tmconnect is correct, this is not really an ACF question even if the field you want to filter posts by is an acf field. But here is an overview of how to do this.

    You need to add a pre_get_post filter to WP, check that the query is being done:

    1. In the admin is_admin()
    2. hat the query is the main query $query->is_main_query()
    3. The the query is being done on your post type, here you need to check the $query->query array to see what is being queried