Get list of 10 posts in Wordpress


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php wp_get_archives('title_li=&type=postbypost&limit=10'); ?>

URL: http://www.themelab.com/2008/05/26/the-easy-way-to-display-recent-posts-in-wordpress/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.