
Origin custom loop. One content, rest excerpt.
By:
samikeijonen on
Apr 25th, 2012 | syntax:
PHP | size: 0.56 KB | hits: 36 | expires: Never
<?php $i = 1; ?>
.
.
.
<?php if ( $i == 1 ) { ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'origin' ) ); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'origin' ), 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<?php } else { ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<?php } ?>
<?php $i++; ?>