Added support for search (core post types only)