Title: Using pages in wordpress
Last modified: August 18, 2016

---

# Using pages in wordpress

 *  Resolved [kingforaday](https://wordpress.org/support/users/kingforaday/)
 * (@kingforaday)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/using-pages-in-wordpress/)
 * im not actually sure if this belongs here so please move to the relevent place
   if it doesnt.
 * i’ve recently converted my whole site to wordpress as opposed to just having 
   an iframe with word press as a news page.
 * i am currently in the process of adding all the pages into word press from my
   original html files.
 * i have built my one theme file today, but one thing i have found is, that in 
   the sidebar area the pages list as,
 * Main page
    followed by sub page then other sub pages.
 * is there a way to force it to only show the main page.
    or how would i implement
   a script that allowed drop down menus containing the sub menus. rather than them
   being shown.
 * I’m really sorry if this doesn’t make sense please ask for more details/
 * you can see what i mean here
    [http://brightest-bulb.com/blog/](http://brightest-bulb.com/blog/)
 * help is very much appreciated, I’m a bit stuck for what to do really

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

 *  [heyrsmith](https://wordpress.org/support/users/heyrsmith/)
 * (@heyrsmith)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/using-pages-in-wordpress/#post-386562)
 * Kingforaday:
    Try the code:
 * `<?php wp_list_pages('title_li=&depth=1'); ?>`
 * in your sidebar and see if that does what you want it to do. Setting the depth
   to “1” Restricts the list to only top-level parent pages. You may want to also
   check out the [codex entry on pages](http://codex.wordpress.org/Template_Tags/wp_list_pages)
   to learn about all of the parameters that you can use.
 *  Thread Starter [kingforaday](https://wordpress.org/support/users/kingforaday/)
 * (@kingforaday)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/using-pages-in-wordpress/#post-386563)
 * thanks thats been really helpfull problem sorted for now

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

The topic ‘Using pages in wordpress’ is closed to new replies.

## Tags

 * [child](https://wordpress.org/support/topic-tag/child/)
 * [parent](https://wordpress.org/support/topic-tag/parent/)
 * [submenu](https://wordpress.org/support/topic-tag/submenu/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [kingforaday](https://wordpress.org/support/users/kingforaday/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/using-pages-in-wordpress/#post-386563)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
