WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using pages in wordpress (3 posts)

  1. kingforaday
    Member
    Posted 7 years ago #

    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/

    help is very much appreciated, I'm a bit stuck for what to do really

  2. heyrsmith
    Member
    Posted 7 years ago #

    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 to learn about all of the parameters that you can use.

  3. kingforaday
    Member
    Posted 7 years ago #

    thanks thats been really helpfull problem sorted for now

Topic Closed

This topic has been closed to new replies.

About this Topic