WordPress.org

Ready to get started?Download WordPress

Forums

possible to add ID element to subnav <ul> in wp_list_pages (1 post)

  1. greggo
    Member
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags