• 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)
  • 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?

    Thread Starter tedzinho

    (@tedzinho)

    well this works but destroys me the html coding, isn´t any other way?

    Thanks!

    Moderator James Huff

    (@macmanx)

    If you only want to link to one page, why not insert it as a standard link tag? Example:

    <a href="http://ww.wp.xz.cn/">WordPress</a>

    Thread Starter tedzinho

    (@tedzinho)

    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.

    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

    (@tedzinho)

    <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>

    <ul class=”gallery”>
    <?php wp_list_pages(‘include=52’);?>
    <img src=”<?php echo catch_that_page_image();?>

    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

    I don t why but my code is cut:
    <ul class=”gallery”>
    <?php wp_list_pages(‘include=52’);?>

    <blockquote<ul class=”gallery”>
    <?php wp_list_pages(‘include=52’);?>

    ??? cannot print the code entirely!
    so after the wp_list_pages add

    put an <ahref> before the img then close it and close the ul.
    hope it works.ciao

    Thread Starter tedzinho

    (@tedzinho)

    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. 🙁

    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

    (@tedzinho)

    <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.