Title: wp_pages
Last modified: August 19, 2016

---

# wp_pages

 *  [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * (@tedzinho)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/)
 * Hi there… this probably is a noob question but.. is any way i can get the title
   of a wordpress page?
 * when i use wp_list_pages it show all the pages but i only want one…
 * i tried wp_list_pages(‘exclude=2,27,29’) and not working… 🙁

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495128)
 * Which page do you want? If it is page 52 you want use:
 *     ```
       wp_list_pages('include=52')
       ```
   
 * Related:
    [How do I determine a Post, Page, Category, Tag, Link, Link Category, or User ID?](http://codex.wordpress.org/FAQ_Working_with_WordPress#How_do_I_determine_a_Post.2C_Page.2C_Category.2C_Tag.2C_Link.2C_Link_Category.2C_or_User_ID.3F)
 *  Thread Starter [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * (@tedzinho)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495302)
 * well this works but destroys me the html coding, isn´t any other way?
 * Thanks!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495304)
 * If you only want to link to one page, why not insert it as a standard link tag?
   Example:
 * `<a href="http://wordpress.org/">WordPress</a>`
 *  Thread Starter [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * (@tedzinho)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495305)
 * it´s is a link but i want to the title be dynamic if i change the Page title 
   it should change in the sidebar too.
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495307)
 * Hi!
    it shoudn t destroy your html code. Put your code here and i am sure someboby
   find out..Did you clode well the php?
 *  Thread Starter [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * (@tedzinho)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495308)
 *     ```
       <ul class="gallery">       
   
       <li>
       <a href="?page_id=25" title="wp_list_pages('include=52')">
       <img src="<?php echo catch_that_page_image()?>"width="151" height="150" />
       </a>
       </li>
       ```
   
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495312)
 * > <ul class=”gallery”>
   >  <?php wp_list_pages(‘include=52’);?> [<img src=”<?php echo catch_that_page_image();?>](https://wordpress.org/support/topic/wp_pages/?output_format=md#)
 * put the width and heigh in the css.
    But are you sure you want to put the image
   and the list in the same ul class gallery? try this code, if doesn t work, we
   ll change it..i am not sure ..just try to help
 * then add your
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495313)
 * I don t why but my code is cut:
    <ul class=”gallery”> <?php wp_list_pages(‘include
   =52’);?>
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495314)
 * <blockquote<ul class=”gallery”>
    <?php wp_list_pages(‘include=52’);?>
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495315)
 * ??? cannot print the code entirely!
    so after the wp_list_pages add
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495316)
 * put an <ahref> before the img then close it and close the ul.
    hope it works.
   ciao
 *  Thread Starter [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * (@tedzinho)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495320)
 * can´t see your code right man … :X the idea is simple … i have created a polaroid
   and the name of the polaroid should be the title of the href, when i put it it
   break all the polaroid next. 🙁
 *  [davidandre](https://wordpress.org/support/users/davidandre/)
 * (@davidandre)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495323)
 * hi,
    i am not sure i get the idea.but don t put the list ans the picture in the
   same ul. use a div then inside this div put the <?php wp_list_pages(‘include=
   52’);?> and the picture
 *  Thread Starter [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * (@tedzinho)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495333)
 *     ```
       <ul class="gallery">
                                                   <li>
                                                       <a href="?page_id=25" class="pic-5"  title="" > </ul>
                                                      	<img src="<?php echo catch_that_page_image()?>"/>
                                                       </a>
       ```
   
 * is this what are you saying? not working
 * ( thanks and sorry the trouble! )

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

The topic ‘wp_pages’ is closed to new replies.

## Tags

 * [wp_list_pages](https://wordpress.org/support/topic-tag/wp_list_pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 14 replies
 * 4 participants
 * Last reply from: [tedzinho](https://wordpress.org/support/users/tedzinho/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/wp_pages/#post-1495333)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
