Results 1 to 2 of 2

Thread: What is the php function name to return quantity of search results?

  1. #1
    Thread Starter
    aaryncom's Avatar
    Join Date
    Sep 2012
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is the php function name to return quantity of search results?

    I'd like to display the number of results coming back from a listings search. While I've found a way to do it if all search results fit on (1) page,
    when it paginates I get the number of search results just for the current displayed page, not the grand total.

    Inserting ...

    <?php while ( have_posts() ) : the_post(); ?>
    <?php $num_posts = ++$num_posts; ?>
    <?php endwhile; ?>

    in archive-listing.php comes up with the number of posts for only the current displayed page of listings.

  2. #2
    tcarter's Avatar
    Join Date
    Jun 2011
    Location
    United States
    Posts
    424
    Thanks
    15
    Thanked 91 Times in 77 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search Return Store Page
    By frostiecuk in forum Report Clipper Bugs
    Replies: 2
    Last Post: November 21st, 2012, 03:31 PM
  2. Search Return not strong
    By mintiesme in forum SuccessWeb
    Replies: 4
    Last Post: November 9th, 2012, 08:50 PM
  3. [SOLVED] Quantity ads on page
    By bizz in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: April 11th, 2011, 01:36 PM
  4. [SOLVED] Search return pagination bug (.4)
    By doctorcilantro in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 27th, 2011, 04:36 PM
  5. can Search function display results for poster tab details and post details?
    By dollarpermile.com in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: November 2nd, 2010, 01:25 PM