Opened 14 years ago
Closed 14 years ago
#21147 closed defect (bug) (duplicate)
Found posts not filled correctly
| Reported by: | Rahe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | 3.4 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
Hi,
When i perform a custom WP_Query with the query 'fields'=>'ids' the found_posts is always 0 even if i have multiple pages of content like :
$q = new WP_Query( array( 'posts_per_page' => 1, 'fields' => 'ids' ) ); var_dump( $q->found_posts );
If i just remove the fields index, the found_posts is correct.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #14426, #17066