Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Hacks
    In reply to: show excerpt by order
    Thread Starter g-no

    (@g-no)

    Hi alchymyth,

    Thanks for your reply. I’m currently using this code:

    <?php query_posts("posts_per_page=1"); ?>
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    			<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
    
    			<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
    
    			<div class="entry">
    				<?php the_excerpt(); ?>
    			</div>
    
    		</div>
    
    	<?php endwhile; ?>
    
    	<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
    
    	<?php else : ?>
    
    		<h2>Not Found</h2>
    
    	<?php endif; ?>

    The offset parameter seems to be very handy indeed. I’m not very experienced with developing for wordpress. Would you know how to use the offset parameter for the excerpt in this loop?

Viewing 1 replies (of 1 total)