Added search, fixed bugs, and filter by custom post type