Child pages not displaying on some pages, but works fine on others
Resolved
Requested:
1 month and 4 weeks ago
I have a group of siblings that all have children, but on some of the sibling pages, the children are not displayed. Each sibling is setup the same way.
There appears to be something on your site which is removing the listed items from the page structure entirely. Even when I enable the displaying of all menus items with no limitations, the listed items are not included in full page list. I can see from the data the items are supposed to be included.
I ruled out common things related to this plugin:
The pages are not excluded from the menus using the Advanced Sidebar options.
The pages are not excluded from the menus using the menu options.
There are two possible causes:
A cache on the site has some data stuck in which is preventing the full list of pages from being returned.
Clearing any known caches may help.
Either a plugin or theme is limiting the pages which are returned from WordPress.
It may be possible to narrow this down by deactivating one plugin at a time to see which one affects the menus.
Another place to check is the active theme’s functions.php file for custom filters which could be the culprit.
If you are able to figure out which plugin is causing the issue, I can install it in a test environment is potentially recreate and resolve the issue.
If you would like to provide me access to a staging/development environment via the private information, I can login and see if I can help track this down. Otherwise, you may send a temporary WordPress administrator account for the live site which may allow me to see what is happening from the WordPress admin. The limitation with your live site is I won’t be able to deactivate plugins to narrow it down because I don’t want to affect your live site.
I did think of one other possibility. I noticed when all your pages are displayed there are a large number of pages in the menu system. Because the system defaults to a limit of 100 pages per level, it is possible the menu is hitting this limit when receiving pages from WordPress.
Adding the following filter to your active theme’s functions.php file will change this limit to 300.
Please let me know if that filter resolves the issue.
I am getting an error in the console “Uncaught ReferenceError: asm_pro is not defined”
Here is the code block of the error.
<script name=”remove-accordion”>
if (‘undefined’ !== typeof asm_pro.enabled_accordions) {
delete asm_pro.enabled_accordions[“advanced_sidebar_menu-2-wrap”];
}
</script>
Hi Nicole Smith,
There appears to be something on your site which is removing the listed items from the page structure entirely. Even when I enable the displaying of all menus items with no limitations, the listed items are not included in full page list. I can see from the data the items are supposed to be included.
I ruled out common things related to this plugin:
There are two possible causes:
If you are able to figure out which plugin is causing the issue, I can install it in a test environment is potentially recreate and resolve the issue.
If you would like to provide me access to a staging/development environment via the private information, I can login and see if I can help track this down. Otherwise, you may send a temporary WordPress administrator account for the live site which may allow me to see what is happening from the WordPress admin. The limitation with your live site is I won’t be able to deactivate plugins to narrow it down because I don’t want to affect your live site.
Hi Nicole Smith,
I did think of one other possibility. I noticed when all your pages are displayed there are a large number of pages in the menu system. Because the system defaults to a limit of 100 pages per level, it is possible the menu is hitting this limit when receiving pages from WordPress.
Adding the following filter to your active theme’s functions.php file will change this limit to 300.
Please let me know if that filter resolves the issue.
Thanks, I will try that code. If that doesn’t work, I will see about getting you access to the dev server.
That fixed it! Thanks.