Skip to main content
1 of 2
Pieter Goosen
  • 55.4k
  • 23
  • 115
  • 209

post_parent returns only the child pages of the page whose ID is given as the value.

post_parent (int) - use page id to return only child pages. Set to 0 to return only top-level entries

To get just a specific page, rather use page_id or pagename or post__in (in conjunction with post_type=page.

I would suggest that you rather make use of get_pages which is specifically there to query pages.

Just a note here, wp_reset_query() is used in conjunction with query_posts. You should use wp_reset_postdata() with WP_Query

Pieter Goosen
  • 55.4k
  • 23
  • 115
  • 209