Php 如何跳过WordPress循环中的第一篇文章?

Php 如何跳过WordPress循环中的第一篇文章?,php,wordpress,Php,Wordpress,我想跳过或不显示第一篇文章。 我怎样才能跳过第一关呢 <?php query_posts('cat=' . $tabish['opt-box1'] . '&showposts' . $tabish['opt-box1-count']); ?> <?php while (have_posts()) : the_post(); ?> <div class=&qu

我想跳过或不显示第一篇文章。 我怎样才能跳过第一关呢

              <?php query_posts('cat=' . $tabish['opt-box1'] . '&showposts' . $tabish['opt-box1-count']); ?> 
                <?php while (have_posts()) : the_post(); ?>
                    <div class="section-left-title">
                        <ul>
                            <li>
                                <a href="<?php the_permalink(); ?>"><i class="fa fa-angle-double-left"></i>
                                    <?php the_title(); ?>
                                </a>
                                <p class="card-text"><small class="text-muted"><?php the_time('d M Y'); ?> </small></p>
                            </li>
                        </ul>
                    </div>
                <?php endwhile; ?>
                <?php wp_reset_query(); ?>



这是否回答了您的问题?我有这个错误
Parse error:syntax error,意外的'endwhile'(T_endwhile)
我使用了编辑过的代码,不幸的是它没有显示任何帖子。你有帖子吗?你把这个代码放在哪里?我把这个代码放在哪里了,不幸的是它没有显示任何帖子。它以前显示过吗?
<?php query_posts( 'cat=' . $tabish['opt-box1'] . '&showposts' . $tabish['opt-box1-count'] ); 
    $i = 0; 
    while( have_posts() ) { the_post(); 
        if( $i > 0 ){ ?>
            <div class="section-left-title">
                <ul>
                    <li>
                        <a href="<?php the_permalink(); ?>"><i class="fa fa-angle-double-left"></i>
                            <?php the_title(); ?>
                        </a>
                        <p class="card-text"><small class="text-muted"><?php the_time('d M Y'); ?> </small></p>
                    </li>
                </ul>
            </div>
        <?php 
        } 
        $i++; 
    } 
wp_reset_query(); ?>