Getting Siblings of Page, using a Looper

Hello,
I am looking for a query I can use within a Looper Provider to grab the siblings of the current page (i.e. the children of the current page’s parent). Ideally, the query would exclude the current page as well.

I am trying to avoid using the parent’s page ID so that I can use it in a layout…

So far, post_type=page&post_parent=13 works but post_type=page&post_parent={{dc:post:id} doesn’t.

Secondly, for the parent page:
what conditions could I give a layout so that it applies to all parent pages (but not pages that have no children)?

Hello @thomasgeorge,

Thanks for writing in! You can use the “Current Page Children” in your Looper provider.
Screen Shot 2021-04-23 at 1.23.43 PM

You can use the Page Parent or the Page Ancestor in the condition.

Hope this helps.

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