debug and getPostByCategory procedures added
Pagination on Categories