Query string for looper to exclude certain pages

I Have a query string for my looper provider to pull child pages from a specific parent ID. I need to exclude a couple child pages though.
Here is my Query String: post_type=page&post_parent=1238&orderby=title&order=ASC

How can I do so in my query string by excluding certain pages by their ID? The ones I want to exclude are IDs: 1137, 1176,1063,1139
Thank you

Hey @eyedia,

Thanks for reaching out!

To exclude the pages based on their page ID, we need to use the post__not_in. You can check this article for more information.

And your query string should look like this one:

post_type=page&post_parent=1238&orderby=title&order=ASC&post__not_in=1137,1176,1063,1139

Hope that helps.

Thank you so much!

You are most welcome @eyedia

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