Support » Fixing WordPress » How to display navigation labels with wp_list_pages?

  • Searching Codex and forums left my question unanswered, so here it is.

    How do I get wp_list_pages to display a navigation label defined in a custom field instead of the_title (as long as that custom field is defined – failing that, wp_list_pages should default to the_title)?

    I wouldn’t want to use wp_nav_menu for two reasons:

    1. I’d like to define the page hierarchy once only (in the page panel, that is);
    2. I don’t want to bother with updating the custom menu whenever I rearrange my pages (which happens often enough).

    Is there anybody out there with an elegant solution to this?

  • The topic ‘How to display navigation labels with wp_list_pages?’ is closed to new replies.