title: Wordpress pagination with category + pretty permalinks
body: <p>I am using a permalink structure like this:<code>/%category%/%postname%</code>. That's all fine when I go to /category or /category/blogpost. but, the problem is when I enable pagination on the <code>/category post list</code>. Because of the permalink structure, I get things like <code>/category/page/2</code> for the page links. When I go to them, I get a 404 — presumably because it's trying to find a blog post with the slug 'page'. I can get it to work if I manually go to /category?paged=2.</p>
  
  <p>So, either i need to get the default format of the pagination links to use query strings, or I need to get the permalink structure working. My problem is that I am using a theme that calls into its own library to build post lists, so I can't modify how it generates the pagination. Maybe there's an action or filter I could hook into?</p>
  
  <p>I have tried hooking into pre_get_posts and setting the 'paged' and 'cat' properties of the query based on the URI but to no avail. Any ideas?</p>