我得到了下面的php。我想要的是这个循环来排除特定的帖子ids<?php the_field('excludeid'); ?phpwhile ( $parent->have_posts() ) : $parent->the_post(); ?>
Do something, except when page id is equal to <?php the_field
注意,插入评论的php也在while()函数中,因为当我把它放在外部时,帖子的id没有被获取,并且显示为零。$sql="SELECT first_name,surname,post_id,post_body,post_date FROM
if(mysqli_num_rows($result)>0){
while