• hi is there any whay that I can show the data form a meta box as a summery?

    I have this code:

    Hi
    How can I make a summery of a custom post type?

    code:
    <?php $loop = new WP_Query( array( ‘post_type’ => ‘news’, ‘posts_per_page’ => 10, ‘post_parent’ => 0 ) ); ?>
    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    <?php the_excerpt(); ?>
    <p><?php echo get_post_meta( $post->ID, ‘twpb_news_textdate’, true ); ?></p>
    <p><?php echo get_post_meta( $post->ID, ‘twpb_news_rub’, true ); ?></p>
    <p><?php echo get_post_meta( $post->ID, ‘twpb_news_textnews’, true ); ?></p>
    <?php endwhile; ?>

    want the code between the <p> </p> to be a summery …please help, is this possible?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘show summery on data from meta box?’ is closed to new replies.