Having some trouble with my Pagination for Search results.
It doesn’t do it lol.
If I search my page for a word it will list all of the results (even if there is 100 of them)
I have the exact Pagination Script listed in the docs.
If i add the results=“20” line in my search script i get a PHP error on submission.
Any idea whats wrong?
Here is an example of what I have going on:
Search Script:
{exp:search:simple_form site="abs|ans|boi" result_page="search-results" show_future_entries="yes"}
<span><label for="keywords">Search:</label></span>
<span><input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100" /></span>
<span><input type="submit" value="Submit" class="submit" /></span>
{/exp:search:simple_form}
Search Results Page:
<h2>Search Results for "{exp:search:keywords}{/exp:search:keywords}"</h2>
<p> </p>
<p><br />
{exp:search:search_results switch="#000000|#003300"}<br />
<div><br />
<ul><br />
<li><b><large><a href="http://{auto_path}">{title}</a></large></b><br />
<ul><br />
<li><i>{excerpt}</i></li><br />
</ul><br />
</li><br />
</ul><br />
</div><br />
</p>
<p>{/exp:search:search_results}</p>
<p> </p>
<p> </p>
<p>{if paginate}<br />
<center><br />
<div class='paginate'><br />
<span class='pagecount'>{page_count}</span> {paginate}<br />
</div><br />
</center><br />
</p>
<p>{/if}</p>
<p>{exp:search:total_results}<br />
{total_results}<br />
{/exp:search:total_results}