• what could i be doing wrong ..

    <?php $parentID = 6;
    			$pages = get_pages("child_of=$parentID&parent=$parentID");
    			foreach($pages as $child) {
                    $bandcontent = get_the_content($child->ID);
    				$bandname = get_the_title($child->ID);
                    $bandlink = get_permalink($child->ID);?>
                    <div class="products"><h3><a href="<?php echo $bandlink ; ?>"><?php echo $bandname ; ?></a></h3>
                    <p><?php $bandcontent; ?></p>
                    </div>
    	<?php } ?>

    shouldn’t the display the content text for the each child of parent

  • The topic ‘help with get_the_content()’ is closed to new replies.