那么,我想根据图像显示标题和摘录?我怎样才能做到这一点?
<div id="treia_box" style="height:350px; width:350px;">
<?php
add_filter('excerpt_length', 'new_excerpt_length');
global $post;
$args = array( 'numberposts' => 3, 'category' => 29 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<h2><a href="<?php the_permalink(); ?>"<?php the_title('<h7>', '<h7>'); ?></a></h2>
<?php $size = array(75,75);
echo get_the_post_thumbnail($post_id, $size)?>
<h6><?php the_excerpt(); ?></h6>
<?php endforeach; ?>
</div>