Forums

Partial search results displayed. (2 posts)

  1. mariostella
    Member
    Posted 2 years ago #

    Hi,
    I have a weird problem with Search Everything. When I insert a search term I get the search count to display a number often superior to ten (depending on the search terms) but only ten are shown, no matter what, ten is max.
    If results are inferior to ten, then only those are shown.

    I have searched for limitations to ten results everywhere!

    This is my search function:

    <?php
    $search_count = 0;
    
    $search = new WP_Query("s=$s & showposts=-1");
    if($search->have_posts()) : while($search->have_posts()) : $search->the_post();
    $search_count++;
    endwhile; endif;
    
    echo $search_count;
    ?>

    Any ideas or similar problems? Thanks to all

  2. mariostella
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic