Support » Fixing WordPress » Adding bullet points to get_posts

  • Resolved Oakey22

    (@oakey22)


    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)
  • 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.