Inside list template, use shortcode [nav]
. The [nav]
shortcode support two arguments – type & ajax. type=”plain” will put pagination made with a tags, nothing around it. type="list"
will display pagination within a ul > li
list. by default it will display previous or next page link. Now, setting ajax=1
will make the pagination work without redirecting the page. That mean it will use ajax call to get the next page content and replace the current content. Leaving it empty will make the pagination word with a query variable. The query variable is a little bit ugly, but it has been use so that you can maintain multiple list pagination used on the same page without conflict.