template class help
-
hi there.
apologies for the cross-posting but i really need an answer to this one.
I am using wp_list_pages in a page template to list a parent’s children, but i want to add a small description (to the page fold if possible) under each link.
Ive read that the_content() class will do this and display the text down to the read more quicktag.
i am having trouble finding how to let the_content() see the page it relates to as the pages are created dynamically via wp_list_pages.
what should i put for the last parameter of the_content() class?
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?
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘template class help’ is closed to new replies.