All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Why is Low Search ignoring my pagination?

John Briggs 29 Jul 2013 15:25 question, complete

I'm using the url at http://local.swita.org/what-to-do/sea... with the following code. The problem I'm having is that it returns the first 10 events no matter what page I click on....

{exp:low_search:results
query="{segment_3}"
limit="10"
paginate="bottom"
}

{if count == 1}



Search Results


    {/if}





  1. {if attraction_url}{/if}{title}{if attraction_url}{/if}

    {attraction_short}

    {if attraction_streetaddress1}

    {attraction_streetaddress1} {if attraction_streetaddress2}
    {attraction_streetaddress2}{/if}
    {attraction_streetcity}, {attraction_streetstate} {attraction_streetzip}

    {if:else}



    {attraction_mailingaddress1} {if attraction_mailingaddress2}
    {attraction_mailingaddress2}{/if}
    {attraction_mailingcity}, {attraction_mailingstate} {attraction_mailingzip}

    {/if}


    {if attraction_url} | Website{/if}



  2. {if count == total_results}
{/if}

{if no_results}Sorry, your search didn't generate any results. Please try your search again.{/if}

{paginate}
Page {current_page} of {total_pages} pages {pagination_links}

{/paginate}

{/exp:low_search:results}

Replies

  1. John Briggs 29 Jul 2013 15:31

    Can't edit so here's the same in code format

     
    {exp:low_search:results
    query="{segment_3}"
    limit="10"
    paginate="bottom"
    }

    {if count == 1}
    <div class="advert hom">
    <img src="http://placehold.it/800x120" />
    </div>

    <h2>Search Results</h2>
    <ol class="search-results">
    {/if}

    <li class="result">
    <a id="{url_title}" name="{url_title}"></a>
    <h3>{if attraction_url}<a target="_blank" href="http://{exp:low_replace find="http://|https://|http:\" replace="" multiple="yes"}{attraction_url}{/exp:low_replace}">{/if}{title}{if attraction_url}</a>{/if}</h3>

    <p>{attraction_short}</p>

    {if attraction_streetaddress1}

    <p>{attraction_streetaddress1} {if attraction_streetaddress2}<br>{attraction_streetaddress2}{/if}<br>{attraction_streetcity}, {attraction_streetstate} {attraction_streetzip}

    {if:else}

    <p>{attraction_mailingaddress1} {if attraction_mailingaddress2}<br>{attraction_mailingaddress2}{/if}<br>{attraction_mailingcity}, {attraction_mailingstate} {attraction_mailingzip}

    {/if}

    <br><strong><?php phoneSplit('{attraction_phone}'); ?>{if attraction_url} | <a href="http://{exp:low_replace find="http://|https://|http:\" replace="" multiple="yes"}{/exp:low_replace}">Website</a>{/if}</strong></p>

    </li>

    {if count == total_results}</ol>{/if}

    {if no_results}<h2>Sorry, your search didn't generate any results. Please try your search again.</h2>{/if}

    {paginate}
    <p>Page {current_page} of {total_pages} pages {pagination_links}</p>
    {/paginate}

    {/exp:low_search:results}

  2. John Briggs 29 Jul 2013 16:12

    Nevermind, I had a plugin conflict. All good now.

  3. Low 29 Jul 2013 18:26

    Ah, good. :)