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

    I have this 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?

    Reply

  • The topic ‘make a summery of data from metabox’ is closed to new replies.