post and category filter for custom posts