Title: wp_list_pages attributes only functioning for Admin
Last modified: August 19, 2016

---

# wp_list_pages attributes only functioning for Admin

 *  Resolved [moabman1](https://wordpress.org/support/users/moabman1/)
 * (@moabman1)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/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: [http://codex.wordpress.org/Template_Tags/wp_list_pages](http://codex.wordpress.org/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 [http://www.ewillys.com/?page_id=16894](http://www.ewillys.com/?page_id=16894)
 * BTW: I have tried reinstalling 2.9.1, but this had no effect.
 * Thanks,
 * Dave

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [moabman1](https://wordpress.org/support/users/moabman1/)
 * (@moabman1)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/wp_list_pages-attributes-only-functioning-for-admin/#post-1349347)
 * UPDATE … ok, I’ve narrowed the problem down to this. When logged in as administrator
   I am able to get results when I try to call for the page ID number such as:
 * .$post->ID
 * But, when not logged in as an admin, I can’t get any results from that equation.
   This is what is causing my php sub page request to fail.
 *  Thread Starter [moabman1](https://wordpress.org/support/users/moabman1/)
 * (@moabman1)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/wp_list_pages-attributes-only-functioning-for-admin/#post-1349359)
 * UPDATE II … Using this code
 *  <?php
    $thePostID = $post->ID; echo $thePostID; $thePostParentID = $post->post_parent;
   echo $thePostParentID; ?>
 * I’ve determined that no results occur unless logged in as administrator.
 *  Thread Starter [moabman1](https://wordpress.org/support/users/moabman1/)
 * (@moabman1)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/wp_list_pages-attributes-only-functioning-for-admin/#post-1349368)
 * RESOLVED .. I discovered there was a conflict between the javascript related 
   to sponsors-slideshow-widget and the problems above. Removing that plugin solved
   the issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_list_pages attributes only functioning for Admin’ is closed to new
replies.

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [wp_list_page](https://wordpress.org/support/topic-tag/wp_list_page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [moabman1](https://wordpress.org/support/users/moabman1/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/wp_list_pages-attributes-only-functioning-for-admin/#post-1349368)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
