• A typical call to wp_list_pages will yield the following partial result:

    <li class="page_item"><a href="https://domain.com/services/" title="Services">Services</a></li>

    Is there any way to include the Page ID in the li tag? For example, I’d like:

    <li class="page_item" id="10">

    Where 10 is the ID of the page Services.

    Thanks.

  • The topic ‘Add Page ID to li tag of wp_list_pages’ is closed to new replies.