wp_query ‘s’ parameter does not work with custom post type
You can do like this, $args = array( ‘post_type’ => ‘tribe_events’, ‘post_per_page’ => get_option(‘posts_per_page’), ‘s’ => get_search_query() ); $query = new WP_Query($args); // Use new keyword and you need to use WP_Query not Wp_Query while($query->have_posts()): $query->the_post(); the_title(); endwhile;wp_reset_postdata(); I used this in search.php file. Worked without any problem.