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)