This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Display the results information box problem.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Display the results information box problem. Reply To: Display the results information box problem.

#35516
danilocubrovic05danilocubrovic05
Participant

Hello one more time.
I’m trying to fix this for now buy using shortcode with custom function to show result number.

$post_count = $GLOBALS[‘wp_query’]->found_posts;
return “Ukupno rezultata: ” . $post_count;

This shows total number of results with empty search but does not reduce that number when searching.

(I have check this function via using time() and it executes ok everytime search executed and refresh data)
So can we use something instead $GLOBALS[‘wp_query’]->found_posts to get valid number of posts when using asp?
If we can get some more information there like search phrase too is even better.