| 
  • This workspace has been inactive for over 11 months, and is scheduled to be reclaimed. Make an edit or click here to mark it as active.
View
 

Random Posts and Random Excerpts

Page history last edited by Ben 14 years, 11 months ago

General

Both of these are pillars of simplicity. One will pull up a list of random posts and the other a list of random excerpts. Random excerpts is aimed at photobloggers who post photo thumbnails into the excerpt field.

 

 

Installation & Usage

  1. Download and extract.
  2. Upload to /wp-content/plugins/ directory.
  3. Enable the plugin.
  4. The plugins are called using:

 

random_posts($limit, $len, $before_title, $after_title, $before_post, $after_post, $show_pass_post, $show_excerpt);

 

or

 

random_excerpt($limit, $len, $before_title, $after_title, $before_post, $after_post, $show_pass_post, $show_excerpt);

 

Where:

 

  • $limit - No. of posts to show.
  • $len - Lenght of the auto-generated excerpt.
  • $before_title - Text to appear before the entry title.
  • $after_title - Text to appear after the entry title.
  • $before_post - Text to appear before the entry excerpt.
  • $after_post - Text to appear after the entry excerpt.
  • $show_pass_post = Include/exclude password protected entries (Default: false).
  • $show_excerpt = Show/hide excerpt (Default: false).

 

Download

 

 

Random Posts

Random Excerpts

Comments (0)

You don't have permission to comment on this page.