Hi all,

We are designing a (wordpress based) website for a client, on which we would like to show all available subpages of a certain parent page; which works fine.

We would like the returned $content to be limited to 70 characters, in stead of the entire text. I understand that PHP uses a "rtrim" function to accomplish this, but I have no idea on how to use this in our code. Is it used in the apply_filters part?

This is the code we use:

<!-- load practice areas -->
<div class="three_col_wide">
    $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'post_date', 'sort_order' => 'asc' ) );

    foreach( $mypages as $page ) {        
        $content = $page->post_content;
        if ( ! $content ) // Check for empty page

        $content = apply_filters( 'the_content', $content );
    <div class="column"><h2><?php echo $page->post_title; ?></h2>
    <?php echo $content; ?><p><a href="<?php echo get_page_link( $page->ID ); ?>" class="button"><?php _e('[:nl]meer info[:fr]en lire plus[:en]more info'); ?></a></p></div>
Any help would be greatly appreciated.