public function limitLinkSearch($search, $wp_query)
    {
        global $wpdb;

        if (empty($search)) {
            return $search;
        }

        $query_vars = $wp_query->query_vars;
        $search = '';
        $and = '';

        foreach((array)$query_vars['search_terms'] as $term) {
            $search .= "{$searchand}(($wpdb->posts.post_title LIKE '%{$wpdb->esc_like($term)}%'))";
            $and = ' AND ';
        }

        $search = (!empty($search)) ? " AND ({$search}) " : $search;

        return $search;
    }