Display one full post and three excerpts

October 20, 2008

To achieve this, we’ll use a simple WordPress loop. The only thing we have a to add is a variable (here named $count) which will count how many posts are listed. Here’s the code. Paste it instead your current WP loop and customize it a bit to make it fit your needs. <?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... [Read the full story]

Showing Only a Post Excerpt in WordPress

May 6, 2008

Depending on the type of blog you run, you may at some point have an interest in only showing only a short excerpt of a post on your blog’s homepage. This could be for a variety of reasons, ranging from attempting to increase page views to trying to make your homepage more easily navigated and organized. Another really popular place for using the post excerpt is for your archive pages, which helps you to avoid being penalized for duplicate content by the search engine spiders. No matter what the reason is, if you are interested... [Read the full story]

Page 2 of 2«12