The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Using pages in wordpress (3 posts)

  1. kingforaday
    Posted 10 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

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

  2. heyrsmith
    Posted 10 years ago #

    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
    Posted 10 years ago #

    thanks thats been really helpfull problem sorted for now

Topic Closed

This topic has been closed to new replies.

About this Topic