Forums Forums Search & Filter Pro PHP Code to display number of results

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #180113

    Hi!

    Love the plugin. Glad I bought it. I would like to display in my template the number of results when people do a search.

    How can I do that?

    Thanks!

    Trevor
    #180132

    What Display Results Method are you using? If it is your own template, then you would need to know the name of the query variable. The default os for it to be named $wp_query, so some sample code would look like this:

    <p>Found <?php echo $wp_query->found_posts; ?> Results</p>

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