WordPress > Calling "Recent Posts" widget via script from custom theme

Posted by Scott B on Stack Overflow See other posts from Stack Overflow or by Scott B
Published on 2010-03-23T19:58:01Z Indexed on 2010/03/23 20:13 UTC
Read the original article Hit count: 283

Filed under:
|

I've tried to code a recent posts script for my custom WP theme, however, it occurs to me that since WP ships with a recent posts widget, ideally I should just be able to call that from within my sidebar.php script, passing it the "Number of posts to show" parameter.

Anyone know how to do this?

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about php