• Hi, I am having a real pain in the ass whit this one hoping you guys can help me out.

    I am designing a site for a client, and they want two menus in the sidebar, one for products the have in stock, and one for products they can get.
    This is the way the site is set up now:

    Home
    -Product
    –In stock
    —In stock #1
    —In stock #2
    —In stock #3
    –Must be ordered
    —Must be ordered #1
    —Must be ordered #2
    —Must be ordered #3

    How can I create a list of only sub-pages under a page called “In stock”

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

    (@jarretc)

    Look into http://codex.ww.wp.xz.cn/Function_Reference/wp_list_pages#List_Sub-Pages, there are a few different things that you can try depending upon your exact situation.

    Thread Starter Håvard Persson

    (@hpersson)

    Thanks, but I have tried a lot of variants of wp_list_pages, but I am not able to only show children of child whit a specific name.

    In the sidebar of page product I try to get two list.

    They should output:

    <ul>
    <li>In stock #1</li>
    <li>In stock #2</li>
    <li>In stock #3</li>
    </ul>
    <ul>
    <li>Must be ordered #1</li>
    <li>Must be ordered #2</li>
    <li>Must be ordered #3</li>
    </ul>

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

The topic ‘Only display subpages’ is closed to new replies.