Using the “Always display child pages” option in conjunction with accordions will allow all family pages to be available within your accordion regardless of which page you are on.
Can you send me a link to where I can see this in action?
There are many possible combinations of blocks, widgets and settings which you might be using. I tested all the ones I could think of on our end and so far everything is working correctly using “Always display child pages” option.
I was able to track down the issue to the use of the “Display the current page’s direct family only” option. When this option is checked, the menu is limited to only items which exist below or above the current item which is why there are no cousins being shown.
A solution is to uncheck the “Display the current page’s direct family only” option. Be default all first level children will be shown when this option is unchecked. To hide the first level children which are not ancestors of the current page, you may add the following filter to your active theme’s functions.php file:
This will allow the accordion to include the cousins while preventing extra menu sections from showing.
Hi Nicole,
Sounds like the option you are looking for is “Always display child pages”.
Using the “Always display child pages” option in conjunction with accordions will allow all family pages to be available within your accordion regardless of which page you are on.
Have a great day!
I already have that selected and it doesn’t work as you can see from the images I shared.
Hi Nicole,
Can you send me a link to where I can see this in action?
There are many possible combinations of blocks, widgets and settings which you might be using. I tested all the ones I could think of on our end and so far everything is working correctly using “Always display child pages” option.
Here is the link.
Hi Nicole,
I was able to track down the issue to the use of the “Display the current page’s direct family only” option. When this option is checked, the menu is limited to only items which exist below or above the current item which is why there are no cousins being shown.
A solution is to uncheck the “Display the current page’s direct family only” option. Be default all first level children will be shown when this option is unchecked. To hide the first level children which are not ancestors of the current page, you may add the following filter to your active theme’s functions.php file:
This will allow the accordion to include the cousins while preventing extra menu sections from showing.
Have a great day!