Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Fold Page List update

    > is it possible to exclude pages with no
    > parent_id and only display hierachy within a
    > single ancestory?”

    If what you mean is having a topnav & a side nav only displaying items (all children, grandkids, greatgrands, etc)for the section you’re in, yes. Here’s what works for me:

    $ancestor=current(_wswwpx_page_get_ancestor_ids($post->ID));
    $args=”title_li=&sort_column=menu_order&child_of=”.$ancestor.”&depth=0″;
    wp_list_pages($args);

    Regards,
    Raoul

Viewing 1 replies (of 1 total)