/ Published in: PHP
                    
                                        
To solve an issue for a blog main page in wordpress to display the latest post in its entirety and the remaining posts only the excerpt.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $count++; ?>
<?php if ($count < 2) : ?>
<?php the_content() ?>
<?php else : ?>
<?php the_excerpt(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
URL: http://www.wprecipes.com/datadial-asked-how-can-i-display-1-full-post-and-3-excerpts
Comments
 Subscribe to comments
                    Subscribe to comments
                
                