• I am trying to build a custom page template that include html content from from the child pages on the parent page. I have this code included in my parent page:

    <?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) : setup_postdata( $pageChild );
    	  	global $more;
    	  	$more = 0;
    		?>
            <div <?php post_class(); ?> >
            <h2><a href="<? echo get_permalink($pageChild->ID); ?>" rel="bookmark" title="Permanent Link to <? echo $pageChild->post_title; ?>"><? echo $pageChild->	post_title; ?></a></h2>
    
    		<?php the_content("&raquo; more"); ?>
    
            </div>
    	<?php endforeach; endif;

    Which works ok but the more link generated from setting the read more option on the clild page does not work, it links to the same page with #more-123 on the end.

    Suggestions?

  • The topic ‘Page – Child content on parent’ is closed to new replies.