WordPress.org

Ready to get started?Download WordPress

Forums

Navigation list with Custom ID for each <li> (1 post)

  1. HopkinsProg
    Member
    Posted 7 years ago #

    Hello all!

    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

  2. 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
  3. 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

      and
    • list such as this?

      Thank you! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags