WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Alternative page names in meta data as nav links (2 posts)

  1. krimsly
    Member
    Posted 5 years ago #

    Greetings all,

    I'd like to use wp_list_pages() to get the page names and use them as nav links on the home page. However, on the secondary site pages I'd like to pull the page names from a meta data field (for each page). That way I can have more descriptive nav link names on the secondary pages.

    Can someone please suggest a good way to do this? I would need to iterate through all the pages and grab the meta data field for each page. Would this be done best with query_posts() or WP_Query()?

    I'd like to do this w/o using a plug-in if possible.

    Thanks alot,

    -NorthK

  2. stvwlf
    Member
    Posted 5 years ago #

    WP_Query would work fine

Topic Closed

This topic has been closed to new replies.

About this Topic