Hi there,
I have a few questions –
- I have selected a page to not show in the menu “Adopt a child” but it still shows in the menu
- I have a category and a post and I am using custom permalinks to show the post instead of the category. In the sidebar menu both the post and category shows up how do I hide the post?
Dion Bairle
See more information below.
OnPoint Plugins
Hello Dion,
Thank you for bringing this to our attention. Turns out there is a limitation where excluded items may still show up in the categories widget when “Display assigned posts under” is selected. I have logged a task to remove this limitation and provide a consistent result across the 3 widgets. We are in the middle a large release to add separate widget functionality so it might take a little while before this new change is added to the plugin.
In the meantime you may add the following filter to your active theme’s functions.php file to support the excluding functionality:
Once you have added the filter, you will be able to also exclude the “Other fostering program” post using the checkbox on the post edit page.
Have a great day!
Dion Bairle
Thanks for that, I added the filter in and it works fine as the pages are hidden now.
However now when I visit the URL the menu is not expanded?
OnPoint Plugins
Hi Dion,
The accordion menus require the current page to be present in the menu to calculate which section of the menu to expand on page load. By excluding the current page, the accordion is unable to locate the current page in the menu, and therefore will not expand. This only happens when viewing the excluded page and does not affect menu functionality when viewing non excluded pages.
One workaround is to only remove the item from the menu when viewing a different page than the excluded one. Here is an updated filter which will leave the excluded page intact when viewing it:
Have a great night!
OnPoint Plugins
Hi Dion,
I wanted to stop by to let you know that excluded pages are now automatically excluded from category widgets.
In order to keep your custom functionality intact, a new filter may be used to prevent the current page from being excluded.
Have a great day!