Reply To: Is it possible to add additional Views templates?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Is it possible to add additional Views templates? Reply To: Is it possible to add additional Views templates?

#9614
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

Usually what I do is that I change something radically.

For starters, you should try to change the function to always return empty results, like so:

function asp_append_more_results( $results, $id ) {
    return array();
}

Now, if you make a search query, it should always return no results whatsoever. If so, then the hook works. If not, then this hook is not executed.

If the hook is not executed, then it’s most likely not included, or included in a wrong location. Try moving it to the main theme functions.php file, or to the child theme functions.php file – and see if it changes anything.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)