WordPress.org

Support

Support » How-To and Troubleshooting » possible to add ID element to subnav <ul> in wp_list_pages

possible to add ID element to subnav <ul> in wp_list_pages

  • The code generated by wp_list_pages when displaying a second generation of pages is as follows:

    < li class=”page_item page-item-2 current_page_ancestor current_page_parent”>< a href=”http://www.example.com/?page_id=2″ title=”Project Overview”>Project Overview< /a>
    < ul>
    < li class=”page_item page-item-9″>< a href=”www.example.com/?page_id=9″ title=”Advocacy”>Advocacy< /a>< /li>
    < li class=”page_item page-item-15″>< a href=”http://www.example.com/?page_id=15″ title=”Funding”>Funding< /a>< /li>
    < /ul>
    < /li>

    Is it possible to add an ID element to the

      that is generated for the second level navigational elements?
  • The topic ‘possible to add ID element to subnav <ul> in wp_list_pages’ is closed to new replies.
Skip to toolbar