1 July 2013

Pagination for Custom Post Types

Insert this after the endif for your loop.

Pitfalls: If you have ‘posts_per_page’ set in your loop $args, make sure it corresponds to whatever you have set in ‘Blog pages show at most’ in Dashboard > Settings > Reading. By default this is 10. If the two have different numbers, your pagination will be broken.