• Hello,,

    I have made the following structure

    Page a
    –subpage1
    –subpage2
    –subpage3

    <?php if (is_page()) { ?>
    <?php $g_page_id = $wp_query->get_queried_object_id(); ?>
    <?php the_title(‘<h2>’, ‘</h2>’); ?>

      <?php wp_list_pages(“depth=1&title_li=&child_of=”.$g_page_id.”&sort_column=menu_order”); ?>

    <?php } ?>

    with this code i found on this forum i manage to display the subpages on page a but i also want to display a menu with subpage 1,2,3 on every subpage. Can anyone help me with this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • [don’t double post – it will be deleted!]

    Thread Starter mlavdh

    (@mlavdh)

    sorry

    Thread Starter mlavdh

    (@mlavdh)

    i’m now using this

    <?php wp_list_pages(“child_of=$post->ID&depth=1&title_li=”); ?>

    but i still don’t know how i can see if a page is a child-page and if there are other child-pages.
    and if you can make a list with these chil-pages on a child page

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘subpages list on subpages’ is closed to new replies.