Opened 22 years ago
Closed 20 years ago
#1230 closed enhancement (wontfix)
searchable custom fields
| Reported by: | yourcelf | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
WordPress allows one to "search" by many types of meta information surrounding a post. For example, one may limit one's results by author ("index.php?author_name=alice"), by search terms ("index.php?s=foo+words"), or by date ("index.php?minute=5").
It would be very useful to also be able to limit results by "custom fields" (you know, the ones stored in wp_postmeta), by either key or value. For example: "index.php?custom_key=myfield&custom_val=5"
would show all posts that both have the custom key "myfield" stored, and have a value of 5 for that key.
Attachments (1)
Change History (4)
#3
@
20 years ago
- Resolution → wontfix
- Status new → closed
Due to the fact that custom fields can be used for an unlimited number of applications, and many custom fields can be affixed to a post, it wouldn't make sense for custom fields to be searchable by default in WordPress. This is best left to plugins which require such functionality.
Closing as wontfix unless anyone has an argument for this should be in the core.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The patch there implements this feature.