Tuesday, November 23, 2010

Sub-page with Title With contain....



<?php

$mypages = get_pages('child_of=4');

$count = 0;

foreach($mypages as $page)

{

$content = $page->post_content;



?>

<div class="service-list">

<h3><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a></h3>

<p><?php echo trunck_string($page->post_content,43,true); ?></p>

</div>

<?php

}

?>

No comments:

Post a Comment