the_content – add description to page listings in templates?

  • Unknown's avatar

    Hi All.

    After having ZERO luck even getting a reply on the .org forums, i figured it was worth a try over here.

    I have templates made that list subpages using wp_list_pages().
    I need to list the content up to the page break. you can apparently do this with the_content() class, but i dont know what to use as the parameter for the location of the page it relates to.

    what should i put in the last parameter of the 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?
    Its all questions and no answers over on the .org site so it seems.

  • Unknown's avatar

    Sorry, but you were right to post in the .org forums…

  • Unknown's avatar

    I thought as much but i figured it was worth a go. the .org forum seems to be mostly questions by people like me. there is really no support or answers.

    Thanks for replying.

  • Unknown's avatar
  • Unknown's avatar

    thanks. i did read that.

    however, when youre struggling for an answer you will ask everywhere thats a possible resource.

  • Unknown's avatar

    Understandable, but I’m afraid we don’t have your answers. We just don’t have that kind of access to our templates.

  • The topic ‘the_content – add description to page listings in templates?’ is closed to new replies.