• I am creating a community directory with pages.
    Currently I have 26 subpages (and sub sub pages) displaying within their parent page.
    However I want to display this array within a table. I have tried splitting it into two using the exclude and include functions but I cannot get it to work.
    `
    <table>
    <tr>
    <td width=”40%”>

      <?php
      wp_list_pages(‘exclude=124,125,126,127,128,129,130,131,132,80,54,102,55,83,66’ ); ?>

    </td>
    <td width=”40%”>

      <?php
      wp_list_pages(‘include=124,125,126,127,128,129,130,131,132&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    </td>
    </tr>
    </table>

    Someone’s help in what is going wrong with this code would be greatly appreciated. I should note that I can get the arrays to display just not within the table.
    Thanks so much

Viewing 1 replies (of 1 total)
  • Thread Starter keco86

    (@keco86)

    On a similar note. How can I get the list to display in a line instead of ontop of each other? I know that I know the answer to this I just cannot think of it right now or if I have to define it in a style sheet or not.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying Sub Pages in Two Columns’ is closed to new replies.