To install:
- Download the plugin file
- Unzip the file into a folder on your hard drive
- Upload /recent-posts/ folder to /wp-content/plugins/ folder on your site
- Visit Network Admin -> Plugins and Network Activate it there.
Note: If you have an older version of the plugin installed in /mu-plugins/ please delete it.
- That’s it! No configuration necessary!
This plugin requires the Post Indexer plugin
The shortcode to list Recent posts is:
[globalrecentposts]
And it will take the following attributes (found in plugin file):
`'number' => 5, 'title_characters' => 250, 'content_characters' => 0, 'title_content_divider' => '', 'title_before' => '', 'title_after' => '', 'global_before' => ' <ul>', 'global_after' => '</ul> ', 'before' => ' <li>', 'after' => '</li> ', 'title_link' => 'yes', 'show_avatars' => 'no', 'avatar_size' => 16, 'posttype' => 'post'`
So, for example if you want to show 5 posts on the front page with a link in the title to the post, with avatar you would use:
[globalrecentposts number="5" title_link="yes" show_avatars="yes"]