Title: PHP help needed
Last modified: August 18, 2016

---

# PHP help needed

 *  [Schuette](https://wordpress.org/support/users/schuette/)
 * (@schuette)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/php-help-needed/)
 * I’m trying to edit a theme’s sidebar to make pages hierarchical but that they
   stay in the order I’ve put them in.
 * IE. I have a parent page called 2005 and another one called 2006 with child pages
   inside. I want to keep those in the order they are on the manage categories page,
   but I want to keep the heirarchical structure.
 * I’m not good with code, I’ve managed to sort out my categories by using code 
   from other themes but I can’t seem to find a theme that had pages in this way.
   Could someone tell me the PHP code I need to get them to display like this?
 * Muchos Gracias

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

 *  [skulled](https://wordpress.org/support/users/skulled/)
 * (@skulled)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/php-help-needed/#post-317426)
 * Please go through this:
 * [http://codex.wordpress.org/Template_Tags/wp_list_pages](http://codex.wordpress.org/Template_Tags/wp_list_pages)
 *  Thread Starter [Schuette](https://wordpress.org/support/users/schuette/)
 * (@schuette)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/php-help-needed/#post-317429)
 * *mwah* Thank you

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

The topic ‘PHP help needed’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Schuette](https://wordpress.org/support/users/schuette/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/php-help-needed/#post-317429)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
