Home/ TECH / Skills /The Plugin for WordPress to Get Recent Posts

The Plugin for WordPress to Get Recent Posts

I redesigned the Chinese blog system, and needed  to add an extra function to get the recent posts. The best place I should to go is the Wordpress official site. Unfortunately, no related function is implemented. And I  continued to google it, but the result made me mad.

OK,I made a decision to  write it by myself.

Where to download it?

  Click here to download it

How to use?
Very simple. There is only one function:
 get_recent_post($records_num=8)

$records_num here is the number of the recent posts you want to retrieve. the default value is 8. it will use the default value if you provide with nothing.

Please extract this package first, and then copy the php file to plugin directory. Sign in your system, and click Plugins tab, one item called Get Recent Post is visible, active it.

Then place the code <?php echo get_recent_post(); ?> into where you want to use.

Feel free to tell me your suggestions, Thanks!


P.S: This article also has a Chinese version, read now!

Neighbourhoods

See Also

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

License

Creative Commons License
This weblog is licensed under a Creative Commons License.