wp_list_pages attributes only functioning for Admin
-
This problem is driving me nuts … As best as I can tell, the wp_list_pages attributes aren’t being recognized unless I am logged in as an admin (I tried various other levels without success). Anyone have any ideas why that might be?
The background: I have a set of parent pages that act as a horizontal top Nav and a set of child pages for most parent pages that appear horizontally underneath the top Nav.
After upgrading to 2.9.1 I discovered my submenus were not appearing. Moreover, it was causing the entire page to simply stop loading, though no PHP errors were appearing.
After experimenting I discovered that the subnav only appears properly to me when I’m logged in as a Administrator. My subscribers and non subscribers either see all the parent and sub parents navs at once or see nothing as I noted above. Changing the attributes appear to be having no effects on the wp_list_pages tag.
Finally, I created a page and tested different nav/subnav code chunks. Whether I used custom chunks of nav code from other sites or code from here: https://codex.www.ads-software.com/Template_Tags/wp_list_pages, the results were the same.
Here is an example page of the incorrect output vs. what should appear based on the code https://www.ewillys.com/?page_id=16894
BTW: I have tried reinstalling 2.9.1, but this had no effect.
Thanks,
Dave
- The topic ‘wp_list_pages attributes only functioning for Admin’ is closed to new replies.