WordPress.org

Ready to get started?Download WordPress

Forums

How to display navigation labels with wp_list_pages? (1 post)

  1. haggy63
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic