php - Why does not appear on these articles everywhere? -
i have page:
each article must appear time made.on first page its ok.from page 2 onwards don
t display article data.
code 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; ?>
code css:
.italic{font-style:italic;cursor:pointer;}
i put picture see how code on front page , on second page. http://i60.tinypic.com/2dcd6rt.jpg
you can me solve problem?
thanks in advance!
Comments
Post a Comment