Suppose I have parent pages A1 and B1. A1 has child pages A1.1, A1.2,A1.3 and B1 has child pages B1.1, B1.2.
When I am on page A1.1 I shall be able to display A1.2 and A1.3. Same for A1.2, I shall be able to see A1.1 and A1.3.
If I am on page B1.1, I shall see B1.2 and vice versa.
Note: Every page has an image and a title. I want to get a solution using views.
This thread may be linked to this link if we need the child pages: How to list all child pages of current parent page in drupal 7?
Add a contextual filter nid on both pages, in default select content id from url, then down below in advance section check exclude option.
I managed to do it by creating a view with the following php code in contextual filter
And finally in the plus options we got to check "Allow multiple values "
Save and its done ;-)