Title: How to get list of Pages?
Last modified: August 19, 2016

---

# How to get list of Pages?

 *  [gooeylewie](https://wordpress.org/support/users/gooeylewie/)
 * (@gooeylewie)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wtf-1/)
 * S0 i’m trying to make a control panel for a theme i’m designing,
    And I want 
   to have a setting that lets the user specify a specific page by drop down menu,
   for a link in on the page.
 * It works fine for categories:
 * $LS3_categories_obj = get_categories(‘hide_empty=0’);
    $LS3_categories = array();
   foreach ($LS3_categories_obj as $LS3_cat) { $LS3_categories[$LS3_cat->cat_ID]
   = $LS3_cat->cat_name; }
 * How do I make a separate one that can do pages, or better yet both??

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wtf-1/#post-1076247)
 * Like using the [template tag](http://codex.wordpress.org/Template_Tags), [wp_list_pages()](http://codex.wordpress.org/Template_Tags/wp_list_pages),
   or if necessary, [get_pages](http://codex.wordpress.org/Function_Reference/get_pages)?
 *  Thread Starter [gooeylewie](https://wordpress.org/support/users/gooeylewie/)
 * (@gooeylewie)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wtf-1/#post-1076252)
 * I tried that, and it doesn’t seem to work, I’m using to same code and logic as
   I do for categories,
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wtf-1/#post-1076253)
 * tried what? There are examples listed in get_pages that you may have to ‘synthesize’…

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

The topic ‘How to get list of Pages?’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/wtf-1/#post-1076253)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
