Forums Forums Search & Filter Pro get the number of results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #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
    #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
    #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.

    Anonymous
    #197805

    Appreciate the help, got it working.

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