• hey all. fingers x’d someone can help out here, as i cant find anything on the search.

    I am using wp_list_pages in a page template, but i want to add a small description (to the page fold if possible) under each link.

    Does anyone have a solution to this?

    cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter fadedhalo

    (@fadedhalo)

    so i have found i can use the_content to display what i want, but i cant seem to get it to work with the list_pages class.

    has anyone integrated these two and can you help?

    Thanks

    Thread Starter fadedhalo

    (@fadedhalo)

    i am having trouble finding how to let the_content() see the page it relates to.
    what should i put in the last parameter of the class?

    I thought my php skills were better than they were. turns out theyre awful. haha

    anyway, here is my code:

    <?php get_header(); ?>
    	<div id="content" class="narrowcolumn">
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
                    <p>
                    <ul>
    					<?php wp_list_pages('sort_column=menu_order&title_li=&child_of='.$post->ID.'&depth=0');?>
    					<?php the_content('Continue reading ', FALSE, 'LOCATION TO PAGE NEEDS ADDED HERE'); ?>
                  </li>
                    </p>
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Can anyone help out?

    Thread Starter fadedhalo

    (@fadedhalo)

    bueller? fry? anyone?

    Thread Starter fadedhalo

    (@fadedhalo)

    bump 🙂

    Thread Starter fadedhalo

    (@fadedhalo)

    Does ANYONE have any idea on this?

    this forum seems more full of questions than answers….

    If I’ve understood what you’re asking: it’s that you want to display the child-pages of a particular page?

    If so, perhaps this plugin (List Subpages with description) might provide you with more of a lead?

    p/s: And in reply to your statement: a number of people seem to post questions, but never post answers to other questions.

    If you’re trying to show a bit of the child page (when you use the_content), you’ll want either that plugin Mosey mentioned, or a custom subquery (http://codex.wordpress.org/The_Loop under Multiple Loops). Your current code unfortunately isn’t going to do the job, wp_list_pages and the_content don’t work together like that.

    FYI… a thread with 4-5 posts doesn’t attract the answer people quite as well as a thread with just one or two posts… bumping just hurts. Patience (and a bit of searching) will bring answers.

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

The topic ‘list_pages and description help’ is closed to new replies.