Opened 14 years ago
Last modified 14 years ago
#10885 closed defect (bug)
Custom post types show up in search — at Initial Version
Reported by: | ryan | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.8.4 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
Custom post types can show up in search results. Searches set the post_type to "any". "any" queries pull in all post types except "revision", which is special cased. We need a means for plugins to exclude their type from searches. Either they can set a custom post_status to avoid as a matter of policy or provide API for registering the type and excluding it more formally.
Note: See
TracTickets for help on using
tickets.