List daughters of a certain Page

1

I am not able to list the daughters of the Institutions menu which is a Page.

Institutions    - Military police    - Town hall    - Secretaries

<li><a href="#">Instituições</a>

 <ul>

                <?php wp_list_pages("title_li=&child_of=Instituições&depth=1”); ?>

</ul>

    
asked by anonymous 07.11.2014 / 12:37

1 answer

1
<li><a href="#">Instituições</a>
            <?php
                $titleslug = 'Instituições';
                $unsanitized_titleslug = str_replace('-',' ',$titleslug);
                $pageinfo = get_page_by_title($unsanitized_titleslug);
            ?>
            <ul>
                <?php wp_list_pages('title_li=&child_of='.$pageinfo->ID);?>
            </ul>
        </li>
    
07.11.2014 / 12:44