• With my theme, I use a relatively narrow div for the actual post content. My first of three posts for the day might require a good amount of scrolling down to reach.

    Is there a way to make a list of links for the top of the sidebar that lists just the titles of the X(amount) most recent posts by title only?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ofcourse you can. There are several plugins that have that feature and you could also make your own loop only showing titles. Google for “recent posts plugin for wordpress” and I’m sure you’ll find what you’re looking for.

    I use this:

    <ul>
    <?php
    $myposts = get_posts('numberposts=10');
    foreach($myposts as $post) :
    ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>

    I use this little bit of code.

    <ul>
    		<?php get_archives('postbypost', '6', 'custom', '<li>', '</li>'); ?>
    
    </ul>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I display a list of recent posts by title/header?’ is closed to new replies.