Enabling s2Member's Alternative View Protection should work on this. Have you tried setting Alternative View Protection to "All" instead of just for search results? A custom search plugin may not register itself within WordPress Conditionals like:
is_search(), but if you set Alternative View Protection to "All", it should work. In other words, s2Member might be unable to detect that these are search results, but setting Alternative View Protection to "All" would eliminate that issue for you.
Also, be sure that you test while logged-out. Or, while logged-in as a Member, NOT an Administrator.
If all else fails, open DavesWordPressLiveSearchResults.php, and find this section:
- Code: Select all
$wpQueryResults->query(array(
's' => $_GET['s'],
'showposts' => $maxResults,
'post_type' => 'any',
'post_status' => 'publish',
));
Change it to:- Code: Select all
attach_s2member_query_filters();
$wpQueryResults->query(array(
's' => $_GET['s'],
'showposts' => $maxResults,
'post_type' => 'any',
'post_status' => 'publish',
));
detach_s2member_query_filters();