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

  1. N33D
    Posted 5 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
    Forum Moderator
    Posted 5 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