当前位置: 代码迷 >> PHP >> wordpress中get_post_meta()的一些有关问题,求解
  详细解决方案

wordpress中get_post_meta()的一些有关问题,求解

热度:129   发布时间:2012-06-07 15:05:14.0
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里改
  相关解决方案