slp_javascript_results_string Returning Results Twice
-
Hello,
I am trying to use this action to modify the way the results are displayed on our website and I am getting each result repeated twice right after each result.
The slp_javascript_results_string example on your website also returns the results twice.
For example from your site but result string changed
// Search Functionality Hook // add_filter('slp_javascript_results_string', array('SLPEnhancedResults','mangle_results_output'), 90 ); /** * Main SLP Enhanced Results Class */ class SLPEnhancedResults { /** * Method: mangle_results_output */ function mangle_results_output($resultString) { return preg_replace('/.*/', 'test' , $resultString); } }
Will display the words “testtest” for every result
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘slp_javascript_results_string Returning Results Twice’ is closed to new replies.