Using Looper with Pages (Parent)

I would like to use Looper to display all child pages of a specific page.
For example, I have a parent page “Gallery” and under there, several kinds of albums. Using the WP Query “post_parent” did not seem to work with the page ID.

Are there alternative ways to accomplish this?

Hello @thomasgeorge,

Thanks for writing in! You will need post_parent and also add post_type => 'page' in your custom WP_Query.

Kindly refer to this article:

Hope this helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.