WordPress.org

Ready to get started?Download WordPress

Forums

Multiple menus wp_nav and fallback to wp-list-pages (2 posts)

  1. N33D
    Member
    Posted 3 years ago #

    Hi !

    I've got a question about wp_nav. Now I've got 2 menus in my theme. And i made them with wp_nav and that works well.

    But I also want support for WP2 versions. But how can I give support to 2 navigation structures in WP2 as a fallback? Because wp-list-pages throws all navigation items in the output. And I don't want to edit the code to set hardcoded page-id's but it must be editable in the backend.

    Anyone that can help me out?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Create a theme option that allows users to enter a comma-separated list of page ids that can then be fed into wp_list_pages exclude parameter.

Topic Closed

This topic has been closed to new replies.

About this Topic