Is there a way to display the siblings children (cousins) when the page has no children?
Include cousins within the accordion menu.
Resolved
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
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!
Nicole Smith, Univ of Lynchburg
I already have that selected and it doesn’t work as you can see from the images I shared.
OnPoint Plugins
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.
Nicole Smith, Univ of Lynchburg
Here is the link.
OnPoint Plugins
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!