日期:2014-05-17  浏览次数:20652 次

wordpress中get_post_meta()的一些问题,求解
<?php $parent = get_post_meta($post->ID, "post_parent_id", true);?>
<?php $arg = 'post_per_page=-1&post_type=page&post_parent=' . $parent; ?>
<?php query_posts($arg); ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>

<tr>
<td abbr="<?php the_title(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></td>
<td abbr="<?php the_title(); ?>"><?php echo get_post_meta($post->ID, "title", true);?></td>
<td abbr="<?php the_title(); ?>"><?php echo get_post_meta($post->ID, "contact", true);?></td>
</tr>


为何输出结果最多为十个?哪儿可能出错吗? 求解

------解决方案--------------------
你要多少个? 
在config里改