• supafamous

    (@supafamous)


    I am trying to use wordpress as a CMS. I am only using pages. In my main navigation on the index, I have some links in the left hand nav, all of the links are pages with the parentID of 0. Example:
    Home
    Departments
    Events

    Lets say you click on the department page. The department page uses its own template. The nav on the page shows all the child pages of the ‘Departments’.
    <?php wp_list_pages(‘child_of=9&title_li=<h2>’ . __(”) . ‘</h2>’); ?>

    What I would really like to see is a to list the children of Departments, as well as the other links with the parent of 0. For example:
    Home
    Departments
    Department Link 1
    Department Link 2
    Department Link 3
    Events

    I cannot find a way to do this, is it possible?

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

    (@root)

    Why not use the tag twice with different parameters. ?

    Thread Starter supafamous

    (@supafamous)

    That wouldnt work because I want the children to show up under their parent. Just using the same tag again would put them all underneath. Actually, I call it three times using a bunch of excluding. That is a pretty ugly solution, but might have to be the way I go.

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

The topic ‘HELP! Need page list gurus…’ is closed to new replies.