Php 为什么不在这些文章中随处可见?

Php 为什么不在这些文章中随处可见?,php,css,wordpress,Php,Css,Wordpress,我有这一页: 每篇文章必须在制作时间出现。在第一页上,它s ok。从第2页开始,不显示文章数据 PHP代码: <?php while ( have_posts() ) : the_post(); ?> <?php if( $wp_query->current_post == 0 ){ ?> <li class="block first-post"> <a href="<?php the_pe

我有这一页:

每篇文章必须在制作时间出现。在第一页上,它
s ok。从第2页开始,不显示文章数据

PHP代码:

<?php while ( have_posts() ) : the_post(); ?>

    <?php if( $wp_query->current_post == 0 ){ ?>
        <li class="block first-post">
            <a href="<?php the_permalink(); ?>" class="fancybox-iframe"><?php the_post_thumbnail('vantage-grid-loop'); ?></a>
            <h3><a href="<?php the_permalink(); ?>" class="fancybox-iframe"><?php the_title(); ?></a></h3><br>
            <p class="italic"><?php the_date(); ?></p>
            <p><?php echo substr(get_the_content(),0,600).'...'; ?></p>
        </li>
    <?php } else if( $wp_query->current_post > 0 && $wp_query->current_post < 5 ) { ?>
        <li class="block">
            <a href="<?php the_permalink(); ?>" class="fancybox-iframe"><?php the_post_thumbnail('blog'); ?></a>
            <h3><a href="<?php the_permalink(); ?>" class="fancybox-iframe"><?php echo substr(get_the_title(),0,20).'...'; ?></a></h3><br>
            <p class="italic"> <?php the_date(); ?></p>
            <p><?php echo substr(get_the_content(),0,70).'...'; ?></p>
        </li>
    <?php } else { ?>
        <li class="block">
            <a href="<?php the_permalink(); ?>" class="fancybox-iframe"><?php the_post_thumbnail('blog'); ?></a>
            <h3><a href="<?php the_permalink(); ?>" class="fancybox-iframe"><?php the_title(); ?></a></h3><br>

            //is displayed here date 
            <p class="italic"><?php the_date(); ?></p>
            <p><?php echo substr(get_the_content(),0,600).'...'; ?></p>
        </li>
    <?php } ?>

    <?php //get_template_part( 'content', get_post_format() ); ?>

<?php endwhile; ?>
.italic{font-style:italic;cursor:pointer;}
我在头版和第二页分别放了一张图片来查看代码。

你能帮我解决这个问题吗


提前谢谢

没有值传递给这个
,我该如何解决这个问题?你试图捏造什么?没有值传递给这个
,我该如何解决这个问题?你试图捏造什么?没有值传递给这个
我该如何解决这个问题?你试图捏造什么??