Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

Looking for support? You can access the support system via your account.

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Edward
    #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!

    Edward
    #127283
    This reply has been marked as private.
    Trevor Moderator
    #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)

You must be logged in to reply to this topic.