Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › live results implementation vs results page problems › Reply To: live results implementation vs results page problems
Hi,
1. Do you mean only displaying the search bar for logged in users? You can try a custom code for that, it may work.
Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_filter('asp_shortcode_output', 'asp_shortcode_output_logged_in', 10, 2);
function asp_shortcode_output_logged_in($out, $id) {
// Return the shortcode to logged-in users only
if ( is_user_logged_in() ) {
return $out;
} else {
return '';
}
}
2. That is not a WordPress site, it is a completely custom made script, I’m afraid it is not possible to replicate like that. You can however place the plugin shortcode into any pop-up. Some themes do have pop-up support, which you can use for that.
3. Make sure to enable the results page override, that should do the trick. With some themes it may still not work though, as attachments are usually not meant to be on the results page.