hello,
i cant figure this out.
im trying to make it show the main category that each page is in, & the levels below the page that you are on.
i have done it before, but after trying every variation i cant get it to work.
i have enclosed 2 screenshots
the one from the admin says
“display the current page’s direct family only ” &
“Always display child pages ”
but on here
it shows all the links to the pages
does not show them in tiers as it used to (?)
i.e.
tier 1
tier2
tier 3
& when you go 1 level below that
it still shows everything under “services”, instead of just everything below “manufacturing”
OnPoint Plugins
Hi Mark,
It appears your site may only have 2 levels of pages. For example if a used Manufacturing as the parent page like in this REST request, your site is returning no pages listed as child pages of Manufacturing. If you are seeing child pages under Manufacturing in the Pages area of the WordPress admin, there is a plugin or theme which is filtering the main page queries on your site to not include them.
With “Display [1] levels of child page” set, the sidebar menu will ever only show 1 level of children. If you would like to show additional levels, that setting should be updated to a higher number like 2.
Once you have the levels of pages as you like, you may add the following filter to your active theme’s functions.php file to make the menu use the current page as the top level parent. For example, if you are on the “Manufacturing” page, the menu will start with Manufacturing at the top and display the children of Manufacturing below it.
If you would like the menu to show pages on the same level as the current page when you are on a page which has no children, you may instead use the following filter.
Let me know if you have any questions.
mark kester
hello,
thanks for the response, but i have used this theme loads of time on other sites, & have not had this problem,
so i got to the bit above where you included the code extracts & thought i would mention this, because this is the same theme i have used on other sites.
as far as im aware i have not added any other plugins to the site that i have not used before
here is a full list of the plugins i have used
Advanced Sidebar Menu
Advanced Sidebar Menu PRO
All in One SEO
Backuply
Call Now Button
Classic Editor
Contact Form 7
Duplicator
Loginizer
Widget Importer & Exporter
WP Fastest Cache
Yoast SEO
the only thing i can see that has changed is “Enable accordion menu ” in the plugin – would this affect it
OnPoint Plugins
Hi Mark,
The pages are also showing as only 2 levels in site queries not related to the widget, so the widget options most likely will change the result.
Based on your list of plugins, the only one which stands out is “WP Fastest Cache”. If you deactivate this plugin, does the issue go away?
What does your pages structure look like in the WordPress Admin? How many levels of pages are showing?
mark kester
about “WP Fastest Cache”
i have defintely used this plugin on the other sites & they did not have the current problem.
about the page structure in wordpress admin, if you mean the menu, i have included a screenshot in the below box
mark kester
in the admin i have set the aettings exactly the same forthese 2 sites
https://www.titlesloans.com/california/
https://www.industrialgearboxesrepairs.com/services/crane/
titlesloans showa
https://www.titlesloans.com/california/anaheim/
the levels below it
but
https://www.industrialgearboxesrepairs.com/services/crane/
has 2 more pages underneath “crane” (mobile & tower) that are not showing
but the settings in the admin are both the same
“WP Fastest Cache” is on http://www.titlesloans.com & it is working ok
mark kester
please find enclosed screenshot below
OnPoint Plugins
Hi Mark,
I was able to locate “Mobile Crane” and “Tower Crane” pages here:
According to the information on these pages (not sidebar menu related), the parent page they are assigned to is actually Services instead of Crane.
Are these the pages which are supposed to be showing up under Crane?
mark kester
i think you might have got it there !
i set up the menu correctly, but didnt change the parent of each page individually, so i will go & do that now.
yes, it is definitely that because i just changed one & it is showing “mobile crane” below in the correct place
https://www.industrialgearboxesrepairs.com/services/crane/
i think this is resolved now – thank you