- This topic has 2 replies, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Dynamiclly update post count outside loop
Hi I was just wondering if it’s possible to have the post count update dynamically outside of the “Loop”?
I would like to make a button that say’s: Found <?php echo $query->found_posts; ?> Results<br />. But this does not work outside the page it self.
Is there away to to this?
Thanks!
Dynamically implies you are using Ajax to refresh parts of the page. The only thing I can think of is to use javascript. Using your own HTML, create a place within the loop to display the count, and then use the onchange event (it might have to be a form control that you use) to reflect the change on a HTML element elsewhere on the page.