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.
Child pages not displaying on some pages, but works fine on others
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.
Nicole Smith, Univ of Lynchburg
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>
OnPoint Plugins
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.
OnPoint Plugins
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.
Nicole Smith, Univ of Lynchburg
Thanks, I will try that code. If that doesn’t work, I will see about getting you access to the dev server.
Nicole Smith, Univ of Lynchburg
That fixed it! Thanks.