Monthly Archives: May 2012

‘Roll Your Own’ Pagination

In order to provide pagination when query_posts() was used in a non-WP site, the technique shown here was used.

Standard pagination did not work because the ‘paged’ query variable was not set. Instead the ‘pg’ variable was used and added to the links created by previous/next_posts_link(). Continue reading