I am having problems looking for info on the codex on how to query for child pages. It seems to be missing the reference for the available parameters
Leave a Reply
You must be logged in to post a comment.
I am having problems looking for info on the codex on how to query for child pages. It seems to be missing the reference for the available parameters
You must be logged in to post a comment.
Yeah they’ve moved the parameters to WP_Query. You’re looking for the post_parent parameter.
All the parameters for
query_posts
are listed in WP_Query page.However, there’s a function get_children() for get child pages that you should use instead. Its parameters are similar to
query_posts
.