WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#4783 closed enhancement (worksforme)

patch for wp_query to allow post_parent

Reported by: joost538 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

I have patched WP_Query to allow the 'post_parent' query parameter.

This is helpful in building custom queries that should allow subpages of a page.

Attachments (1)

query.php.patch (862 bytes) - added by joost538 7 years ago.
patch for WP_Query in wp-includes/query.php

Download all attachments as: .zip

Change History (4)

joost5387 years ago

patch for WP_Query in wp-includes/query.php

comment:1 ffemtcj6 years ago

  • Milestone changed from 2.5 to 2.6

comment:2 DD325 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

I believe WP_Query currently accepts the post_parent query arg

comment:3 jacobsantos5 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.