Support » Theme: Stargazer » Child Pages

  • I’m running a child theme of Stargazer, and I’ve copied the page content page to the child theme directory so I can add this after the content:

    <?php
    				$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    				if ($children) { ?>
    					<div class="subpagelist">
    						<h5>Topics in <?php the_title(); ?></h5>
    						<ul>
    							<?php  echo $children; ?>
    						</ul>
    					</div>
    			<?php  } ?>

    It works fine in other child themes, but in Stargazer, it produces a list of all pages and their child pages, regardless of the page one is on. It even outputs this whole list on pages that don’t have child pages at all.

    Here is an example: http://ourenglishclass.net/calendar/

    This same code works fine in other themes, so I’m wondering what’s going on.

  • The topic ‘Child Pages’ is closed to new replies.