• Can somone please tell me how to work around this.

    I’ve added this code to my sidebar.php for a “Previous Posts” section:

    <div id=”Recent Posts”>
    <h3>Recent Posts</h>

      <?php
      $posts = get_posts(‘numberposts=5’);
      foreach($posts as $post) :
      ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?>

    </div>

    …and this works great for exactly what I’m want but some of the titles of the posts push my sidebar down if they are too long. Is there a wordwrap or tag I can put that will make the titles wordwrap or something so it doesn’t screw up my sidebar up?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Help with Sidebar and Previous Posts’ is closed to new replies.