Title: Adding bullet points to get_posts
Last modified: August 19, 2016

---

# Adding bullet points to get_posts

 *  Resolved [oakey22](https://wordpress.org/support/users/oakey22/)
 * (@oakey22)
 * [17 years ago](https://wordpress.org/support/topic/adding-bullet-points-to-get_posts/)
 * i have get_posts in my sidebar which returns the last 7 posts in a certain category,
   how do i make it up something before every post link?
    like one of those arrows,
   is it a raquo or laquo?
 * the code i use is,
 *     ```
       <h2><?php echo "Latest News"; ?></h2>
          <?php
        global $post;
        $myposts = get_posts('numberposts=7&category=28&order=DESC&orderby=ID');
        foreach($myposts as $post) :
        ?>
   
           <li><a href=<?php the_permalink(); ?>><?php the_title(); ?></a></li>
           <p>
             <?php endforeach; ?>
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [oakey22](https://wordpress.org/support/users/oakey22/)
 * (@oakey22)
 * [17 years ago](https://wordpress.org/support/topic/adding-bullet-points-to-get_posts/#post-1084919)
 * sorted it now thanks.
 * did this
 *     ```
       <h2><?php echo "Latest News"; ?></h2>
          <?php
        global $post;
        $myposts = get_posts('numberposts=7&category=28&order=DESC&orderby=ID');
        foreach($myposts as $post) :
        ?>
   
           <li> &raquo<a href=<?php the_permalink(); ?>><?php the_title(); ?></a></li>
           <p>
             <?php endforeach; ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding bullet points to get_posts’ is closed to new replies.

## Tags

 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)
 * [raquo](https://wordpress.org/support/topic-tag/raquo/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [oakey22](https://wordpress.org/support/users/oakey22/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/adding-bullet-points-to-get_posts/#post-1084919)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
