WP Ajax Action Not Picking Up Query String Parameter May 16, 2022 by Tarik Billa Add global $wpdb; in function find_posts(), before you use $wpdb;