WordPress.org

Ready to get started?Download WordPress

Forums

Not list_pages but something like get_pages? (3 posts)

  1. AndreasLangbergs
    Member
    Posted 8 years ago #

    Hi, when playing around trying to acomplish my design I´we gone stuck. When using wp_list_pages all the 7 pages i have created comes upp in a list, but what i whant is the 7 pages to come up after each others. My idea is to have a table and to separate the outputted pages names and links white images to acomplish a menu. Does anyone know how to get the number of pages, and maybe the link of the different menu pages maybe through there menu sorting number....

    //Andreas

  2. ladydelaluna
    Member
    Posted 8 years ago #

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    You would use the list_pages but with arguments... read the manual link for more information

  3. Chris Burgess
    Member
    Posted 7 years ago #

    that would be get_page_children() in 2.1 (not sure if it was in 2.0 or not)

    get_page_children(ID, NULL) ;

    the second argument is the pages to check to see if they have a parent with ID of ID - if you set it to something empty(), then WP will use the page cache

    i have a plugin for some related stuff - xbToolkit - will upload it to http://giantrobot.co.nz/ sometime in early march - please bug me via email if i haven't done it already

Topic Closed

This topic has been closed to new replies.

About this Topic