So I got the code to work with a lot of help, but now Im getting a 404 error when navigating to the next page. Here is my structure.
-> parent category
–> children category
All of the children are displayed on a certain page. You select the category which then displays all the post within that category. This is where I want to limit the number displayed. Hopefully that gives a better picture.