Display result count using 'Custom' Display results method

Forums Forums Search & Filter Pro Display result count using 'Custom' Display results method

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #156145

    I’m using the custom display method, then have a standard WP loop in the template, however when displaying the posts it now obviously doesn’t show a post count.

    I’m not fussed on using ajax or not, whichever will work easier, but do you have any idea on how this can be done? Just want a dynamically updating post count.

    Cheers!

    Trevor
    #156253

    Assuming that this is your coded template, which would equate to that Custom method, the PHP for fetching and displaying the count needs to be inside the Ajax container.

    Anonymous
    #156271

    Thanks for the reply!

    I tried this using the wp_count_posts function but the number did not update, even when the post count was within the Ajax container.

    Trevor
    #156276

    Did you use this (or similar?):

    Found <?php echo $query->found_posts; ?> Results
    
Viewing 4 posts – 1 through 4 (of 4 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.