WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts in sidebar displaying without spaces (2 posts)

  1. scinapse
    Member
    Posted 8 years ago #

    Hi there,

    I've used the following code to add links to the last 5 posts to my sidebar:

    <?php wp_get_archives('type=postbypost&limit=5&format=custom'); ?>

    The problem is the post titles (and hence hyperlinks) run together in one long line rather than being nicely laid out with a carraige return between post titles.

    Any ideas how to achieve this?

    Cheers,
    scinapse

  2. girlspoke
    Member
    Posted 8 years ago #

    you can remove: '&format=custom' part.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags