Recent Posts in sidebar displaying without spaces
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?
- The topic ‘Recent Posts in sidebar displaying without spaces’ is closed to new replies.