Opened 7 years ago
Closed 7 years ago
#2563 closed defect (bug) (fixed)
Add meta_key and meta_value options to get_posts() and get_pages()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.0.1 |
| Severity: | normal | Keywords: | meta post page api query bg|has-patch bg|needs testing |
| Cc: |
Description
Allow restricting post and page queries by meta keys and values.
Example: get_posts('meta_key=foo&meta_value=bar')
Attachments (1)
Change History (5)
- Keywords bg|has-patch bg|needs testing added
Patch allows one (1)'meta_key' and one (1) 'meta_value' parameter in get_posts() and get_pages(). If using 'include' parameter 'meta_key' and 'meta_value' are ignored.
Note: See
TracTickets for help on using
tickets.

In get_posts() and get_pages() test meta_key and meta_value