Forums Forums Search & Filter Pro How to display total search result?

Tagged: 

Viewing 10 posts - 1 through 10 (of 11 total)
  • Anonymous
    #253863

    Hi, how can I display the total search results as per the demo:
    https://demo.searchandfilter.com/movies/

    Example: “Found 100 Results”

    Trevor
    #253899

    It would require an edit in the PHP template file being used. Inside the results container, you would need code like this:

    Found <?php echo $query->found_posts; ?> Results (assuming that your theme uses $query for the results array, otherwise it would need to be changed to match whether results array variable name your theme uses.

    Anonymous
    #254017

    Hi Trevor, I’m not familiar with WordPress folder structure, hence finding the correct file to insert this code is tricky.

    You may close this ticket if this is out of the support scope.

    Trevor
    #254031
    This reply has been marked as private.
    Anonymous
    #254044
    This reply has been marked as private.
    Trevor
    #254162
    This reply has been marked as private.
    Anonymous
    #254168

    Directory Filter [searchandfilter id=”1573″]

    Search page URL:
    https://listings.singaporeofficespaces.com/directory

    Trevor
    #254203

    Ah, I see. It uses the Elementor Pro Archive Posts widget, as I expected. With that method, it is not possible to display the total count, as the template is not available to us. It may be something we will look to develop after we have released V3 (due in a few months), when we turn are focus back to this extension.

    Anonymous
    #254240

    Noted, thank you. You may close this ticket.

    Anonymous
    #254242
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 11 total)