Title: Recent Posts
Last modified: August 18, 2016

---

# Recent Posts

 *  [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/)
 * How do you put a bullet or other text BEFORE each post in the recent posts (or
   recent comments) hack. When the recent posts are returned on the page, they look
   like they are all running together, and I wanted a way to differentiate them 
   with a bullet or something like that.
    Thanks!

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

 *  [stravaiger](https://wordpress.org/support/users/stravaiger/)
 * (@stravaiger)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66561)
 * I stuck <hr width=”100%”/> at the end of each excerpt but then again I modified
   the template to only display the excerpt of a story rather than the full story.
   You get the full story when you click on the title.
    To add bullets to the title
   of each story, modify index.php: <h3 class=”storytitle” id=”post-<?php the_ID();?
   >”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
    - <?php the_title(); ?>
 * </h3>
    Alistair
 *  Thread Starter [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66655)
 * I just wanted bullets or <i>something</i> to separate the recent posts. Otherwise,
   they all run together…But I found what I needed to do.
    Change the code that 
   Nick has you put in your index.php file from this: <?php get_recent_posts(10,”,‘‘,
   true, 5); ?> to: <?php get_recent_posts(10, ‘â€¢ ‘, ‘‘, true, 5); ?> or, put 
   whatever text there you want.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66659)
 * Well, it looks fine but it isn’t semantically correct, and is not, as your button
   states, “XHTML Valid”. IF you want to eventually have your page validate, follow
   my suggestion above.
 *  Thread Starter [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66687)
 * I think my new XHTML validation problems are mostly from the CG-Amazon plugin.
   Before the page was fine. *Sigh*. That’s yet another thing to fix…but I don’t
   know how I’m going to fix it. It’s a big plugin.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66693)
 * No, it is not cg-amazon – Dave, with just a bit of help from me, has gone to 
   great lengths to ensure it validates. The problem with how you are using it and
   Recent Posts is you have an unordered list followed by links with 
   ‘s. That is
   not valid XHTML. As I said before, try my suggestion above for Recent Posts. 
   I have CG-Amazon on my site and it validates just fine. How do you have it called(
   including wrapping tags) in your index page?
 *  Thread Starter [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66694)
 * OK, I’ve got another question…How do I deal with ampersands in the actual permalink
   title…
    Let’s say the name of my post was A & B. When the page converts to HTML
   and show up on my main blog page, it looks fine but in the XHTML the & becomes
   an undefined string, and now I get XHTML errors. How do you correct the hack 
   so that ampersands can be converted to & for XHTML purposes.
 *  Thread Starter [slappo](https://wordpress.org/support/users/slappo/)
 * (@slappo)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66700)
 * Forget that last question, I figured it out…just add the .htmlspecialchars before
   the actual $post_title in addition to the permalink…
    I’m still getting cg-amazon
   related html errors…but less of them…and your fix for recent posts works (obviously).
   So, you can’t pass the variables in the <?php get_recent_posts(); ?> code? You
   have to modify the hack? Please, can you take a look at my page and tell me what
   the heck is going wrong? Maybe its a css thing, but I don’t think so. I don’t
   have any more  anywhere…
 *  [FerN](https://wordpress.org/support/users/fern/)
 * (@fern)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66908)
 * Hi, you guys,
    It really sounds greek to me. I am trying to show recent posts
   in the ritght side of the blog. Just under, let’s say, categories. I downloaded
   the hack, and activate it. But I don’t know how to go on now. I don’t know how
   to move, swap, delete, or add blocks on the right side. Let’s say that I am completely
   new to WP, and I have no clue of php, css, etc. Could you please give me an easy
   way (I would be grateful to death…) FerN.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-66935)
 * I answered what to add to the menu above:
    [http://wordpress.org/support/10/8088#post-6](http://wordpress.org/support/10/8088#post-6)**
   stravaiger** – If you happen to pass this way again, could you fix your post 
   above so we can get this thread straightened out (use backticks for your code)?
 *  [FerN](https://wordpress.org/support/users/fern/)
 * (@fern)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-67068)
 * Thanks, Beel,
    I was not sure, sorry for being newbie. It is working now (in 
   Spanish but it works…) [http://www.perplejismos.com.](http://www.perplejismos.com.)
   The more you have, the more you want… As I have no idea (I can only edit by copypasting),
   I am not sure if it would be easy to have the list the other way around (like
   powerpoint, but without the bullets). I.e.: — This is a post title, and when 
   the line breaks you have an extra margin… — It seems more legible to me. Thanks
   again, FerN.

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

The topic ‘Recent Posts’ is closed to new replies.

 * 10 replies
 * 4 participants
 * Last reply from: [FerN](https://wordpress.org/support/users/fern/)
 * Last activity: [21 years, 11 months ago](https://wordpress.org/support/topic/recent-posts-1-2/#post-67068)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
