When I use paginate code inside a channel entries tag the code repeats as many times as there are entries. So it will show 10 times when I want it to appear once.
If I place the paginate code outside channel entries then it simply doesn’t work.
Just not sure best way to resolve this.
Thanks in advance for any advice on this.
Entries Tag:
{exp:channel:entries channel="communications" limit="10" orderby="entry_date" sort="desc"}
}Paginate Code:
<div class="paginate">
{paginate}
{if previous_page}
<a href="http://{auto_path}class=prev">Previous Page</a>
{/if}
{if {current_page} != '1' AND "{current_page}" != "{total_pages}" } | {/if}
{if next_page}
<a href="http://{auto_path}class=next">Next Page</a>
{/if}
{/paginate}
</div>