Title: Functional Footer
Last modified: August 19, 2016

---

# Functional Footer

 *  [customstudio](https://wordpress.org/support/users/customstudio/)
 * (@customstudio)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/functional-footer/)
 * Hi there,
 * I’m creating a theme that is going to use a functional footer containing a sitemap
   in columns, plus some other contact info. For an example, see [http://www.mediatemple.net/](http://www.mediatemple.net/).
 * My question is around the php code needed to pull in only a page and its sub 
   pages for each column. I understand how to pull in a list of all pages, as in
   most sidebars, but need to know how to pull in only one page and its subpages
   on one column, then the next page and subpages on the next column etc.
 * Thanks in advance,
 * Tom Perkins

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [zeniph](https://wordpress.org/support/users/zeniph/)
 * (@zeniph)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/functional-footer/#post-1454113)
 * look at
    [http://codex.wordpress.org/Template_Tags/wp_list_pages](http://codex.wordpress.org/Template_Tags/wp_list_pages)
 * note the arguments depth and child_of
 *     ```
       <div>
       <h1>Page 1 name</h1>
       <?php wp_list_pages('depth =>1, child_of => page1-ID-number, '); ?>
       </div>
   
       <div>
       <h1>Page 2 name</h1>
       <?php wp_list_pages('depth =>1, child_of => page2-ID-number, '); ?>
       </div>
       ```
   
 * You could make it a little bit more semi-automatic using a value to get page 
   name and page ID but thats the basic idea.
 *  Thread Starter [customstudio](https://wordpress.org/support/users/customstudio/)
 * (@customstudio)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/functional-footer/#post-1454123)
 * Really helpful, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Functional Footer’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [customstudio](https://wordpress.org/support/users/customstudio/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/functional-footer/#post-1454123)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
