Title: Recent entries with excerpts &#8211; Code help
Last modified: August 19, 2016

---

# Recent entries with excerpts – Code help

 *  [ajennell](https://wordpress.org/support/users/ajennell/)
 * (@ajennell)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/)
 * I would like to include excerpts with my recent entry list on my main page. I
   have found and configured the fallowing code, but I get a brake between the recent
   entry and the excerpt. Anybody have a better code or am I stuck with this one?
 *     ```
       <?php query_posts('category_name=Reviews&showposts=5');
       while (have_posts()) : the_post();
         // do whatever you want
       ?>
       <b><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><?php the_excerpt(); ?><br />
       <?php
       endwhile;
       ?>
       ```
   
 * Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [ajennell](https://wordpress.org/support/users/ajennell/)
 * (@ajennell)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830932)
 * bump
 *  Thread Starter [ajennell](https://wordpress.org/support/users/ajennell/)
 * (@ajennell)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830954)
 * Bump
 *  [boober](https://wordpress.org/support/users/boober/)
 * (@boober)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830956)
 * instead of useless bumping, why dont you give us more info. a link to the site
   would be a good place to start.
 *  Thread Starter [ajennell](https://wordpress.org/support/users/ajennell/)
 * (@ajennell)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830958)
 * There really isn’t more info to give. The code is very straightforward and I 
   would assume that anyone with knowledge of CSS and wordpress codes would be able
   to look at it and see my problem. If they don’t, they wouldn’t be able to help
   me.
 * I do not have a working example at the moment but [http://thegildedpen.com/index.php](http://thegildedpen.com/index.php)
   is up when I am testing the layout and other codes and this can be seen active
   there.
 *  [andymelton](https://wordpress.org/support/users/andymelton/)
 * (@andymelton)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830991)
 * I am trying to do something similar to this. Instead of displaying posts from
   a specific category I want to display the 5 most recent entries on my blog (from
   all categories). I am looking at the Loop information on the Codex pages but 
   I don’t seem to be grasping how to do this.
 *  [andymelton](https://wordpress.org/support/users/andymelton/)
 * (@andymelton)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830992)
 * I found a temporary fix. I am now having it to display all categories except 
   the **un-categorized** category. I try my best to keep my posts out of that category
   so it shouldn’t be a problem.
 *  [andymelton](https://wordpress.org/support/users/andymelton/)
 * (@andymelton)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-830993)
 * Well, I thought that would fix it. But now it’s displaying the oldest posts.
 *  [andymelton](https://wordpress.org/support/users/andymelton/)
 * (@andymelton)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-831020)
 * I think what happened was when I imported my database into my local server, the
   dates got reversed. That’s the only logical conclusion. I don’t know why it did
   that because the newest posts that I have made are still on the front page.
 * But anyways. I uploaded the theme to my production server and it worked fine.
 *  Thread Starter [ajennell](https://wordpress.org/support/users/ajennell/)
 * (@ajennell)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-831024)
 * Well, as long as you find something that works for you! I’m still using the same
   code I have, but I’m coming up with other non-related problems.
 * Good luck to you!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Recent entries with excerpts – Code help’ is closed to new replies.

 * 9 replies
 * 3 participants
 * Last reply from: [ajennell](https://wordpress.org/support/users/ajennell/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/recent-entries-with-excerpts-code-help/#post-831024)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
