我知道了。。这是代码
<?php
$args=array(
\'post_type\' => \'my_post_type\',
\'post__not_in\' => array($post->ID),
\'order\'=>\'ASC\',
\'posts_per_page\'=> 3, // Number of related posts that will be shown.
\'caller_get_posts\'=>1,
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
the_content();
endwhile;
?>