There was an error in the code example that has been corrected. The code will now work in a sidebar text widget.
At the bottom of the sidebar on my other pages like About, I have a list of my recent WordPress posts. Go ahead, go take a look and then come back – I’ll wait.
This is easily done by adding a loop to the sidebar and a query that locates posts from just one category.
Please note that this will only work with standard sidebars. If you are using widget ready sidebars you will want to install the Exec-PHP plugin and then add the code to one of the text widgets. Exec-PHP allows you to run PHP code in posts, pages and widgetized sidebars.