Forums Forums Search & Filter Pro Dynamiclly update post count outside loop

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #127282

    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!

    Anonymous
    #127283
    This reply has been marked as private.
    Trevor
    #127286

    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.

Viewing 3 posts - 1 through 3 (of 3 total)