Navigation list with Custom ID for each <li>
I am trying to output a customized navigation list. The function wp_list_pages does not accomplish what I need to do.
I will be printing out top-level pages only, no children. I need to go through and create a navigation list with a custom ID for each
- element. I am creating a navigation list where each item has a background image that is dynamically generated through PHP’s GD Library, so I ned to give each
- element a unique ID (ex – “nav_”.PageTitle, something like that), so that the appropriate background image can be associated with that element.
Do you have any suggestions as to how I could perhaps manually parse all of the top level pages to output a custom
- list such as this?
Thank you! 🙂
- The topic ‘Navigation list with Custom ID for each <li>’ is closed to new replies.