我使用WordPress 3.4 = 5,其中我已經使用代碼來獲得職位,但分頁不工作這一點,請幫助WordPress的3.5分頁
$posts = get_posts('category='.$subcatid.'&orderby=rand&numberposts=4');
foreach($posts as $post) { ?>
<h2>
<a href="<?php the_permalink() ?>" target="_parent"><?php the_title(); ?></a>
</h2>
<p><?php //echo $post->post_content; ?></p>
<p><?php echo get_post_meta($post->ID, 'Address', true); ?></p>
<hr style="margin-left:0px; margin-right:0px; margin-bottom:15px; margin-top:15px;" />
<?php } ?>
確定感謝信息 – user1713694