Hello everyone, I apologize in advance if this has been answered, but I could not find a solution in the forum while searching…
I am having trouble displaying my pagination results while using this code. The results show up fine, however once I put a limit, the pagination does not show up at all. Am I missing something?
Any suggestions are greatly appreciated.
Thanks!
Template: programs/index
{if segment_2 == "by_type"}
{embed="programs/brief_details"}
{/if}
{if segment_2 == "by_region"}
{embed="programs/brief_details"}
{/if}
{if segment_2 == "by_group"}
{embed="programs/brief_details"}
{/if}
Template: programs/brief_details
{exp:query sql="SELECT cat_id, cat_name, cat_image FROM exp_categories WHERE cat_url_title = '{segment_3}' LIMIT 0,1"}
{!-- Category Image --}
{if cat_image}{cat_image}
{/if}
{!-- Category Title --}
<h1>{cat_name} Programs</h1>
{!-- Get entries for category selected --}
{exp:channel:entries channel="programs" category="{cat_id}" orderby="program_sort|title" sort="desc" limit="4" paginate_base="programs/{segment_2}/{segment_3}" paginate="bottom"}
{if program_image_small}{program_image_small}{/if}
{if website}
<h2><a href="http://{website}" title="{title}">{title}</a></h2>
<p> {if:else} <br />
</p><h2><a href="http://{path=%27program/{url_title}%27}" title="{title}">{title}</a></h2>
<p> {/if}<br />
<br />
{brief_description} <br />
<br />
<br />
</p>
<p> <br />
{!-- Pagination --}<br />
{paginate}{if {total_pages} > 1} Page {current_page} of {total_pages} pages {pagination_links} {/if}{/paginate}<br />
<br />
<br />
{if no_results}<h2 align="center">No Results</h2>{/if}<br />
{/exp:channel:entries}<br />
<br />
{/exp:query}