Support Forums

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

Forums Forums Search & Filter Pro get the number of results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Roee Yossef
    #197503

    Hi,

    How can i get the number of results form the search? I want to display how many records found.

    Appreciate the help…

    Roee Yossef

    Trevor Moderator
    #197557

    You would need to know the name of the array that wp_query places the results in to. A typical example is this:

    Found <?php echo $query->found_posts; ?> Results

    Where $query is that array. Note that if you are using Ajax, that code would need to be inside the Ajax Container.

    Trevor Moderator
    #197559

    Please note that we are now into a holiday period in the UK. We will be working for some of this period, but replies may be delayed at times.

    Roee Yossef
    #197805

    Appreciate the help, got it working.

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

The topic ‘get the number of results’ is closed to new replies.