wp_query search by keyword code example Example: wp query search $query = new WP_Query( array( 's' => 'keyword' ) );