• On my website, I have several pages which are included by using the wp_list_pages(‘title_li=’) tag. Almost every page is displayed correctly, except for one page that has subpages. Have a look at the following example:

    [ul]
    [li]Main page 1[/li]
    [li]Main page 2[/li]
    [li]subpage 2.1[/li]
    [li]subpage 2.1[/li]
    [/ul]
    [li]Main page 3[/li]
    [/ul]
    As you can see does “main page 2” have some subpages. After displaying these subpages, an is parsed. That is something I don’t want! How can I remove it? You can see the website in action by clicking on the following url: http://www.lommers.org

    cheers,

    Rogier

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not clear what is it what you don’t want.
    To not display the children Pages? To remove the indent?

    Thread Starter indeed

    (@indeed)

    I want to remove the automatically generated [/ul]-tag, since it is screwing up my layout. The tag is generated right after the [li]subpage 2.1[/li].

    Actually it does the correct thing and your code above is completely wrong. Here is what you have in your site:
    <ul>
    <li>parent1</li>
    <li>parent2
    <ul>
    <li>child1</li>
    <li>child2</li>
    </ul></li> <== closing parent2
    <li>parent3</li>... etc.
    </ul>

    It is called “nested lists.

    Thread Starter indeed

    (@indeed)

    Okay, thank you. But why is there a whitespace between “master thesis” and “wordpress statistics plugin”? How can I remove it? Have a look:

    http://nijmegen.lommers.org/public/error.document.lommers.org.jpg&#8221;

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘List of Pages is automatically closed’ is closed to new replies.