Pagination for custom query won’t let me back on page 1

paginate_links doesn’t work correctly in some (many) cases if you use the default base. If you look at the generated source you can see what is happening: if you are on any page but the first, when using the default base– %_%paginate_links will print an empty href="" for the link back to page one. Of course, browsers will interpret this to be “this page” so the link to page one doesn’t work. I consider this very much a bug.

To get around it, pass a base argument like: 'base' => site_url('%_%'),, or 'base' => get_permalink().'%_%',. Context matters which you choose, so be careful.