|
Revision 29749, 1.1 kB
(checked in by MtDewVirus, 6 months ago)
|
Fix contributor username
|
| Line | |
|---|
| 1 |
=== Recent Comments === |
|---|
| 2 |
Contributors: MtDewVirus |
|---|
| 3 |
Tags: comments, recent, list |
|---|
| 4 |
Stable tag: trunk |
|---|
| 5 |
|
|---|
| 6 |
Retrieves a list of the most recent comments. |
|---|
| 7 |
|
|---|
| 8 |
== Installation == |
|---|
| 9 |
1. Upload `recent-comments.php` to the `/wp-content/plugins/` directory |
|---|
| 10 |
1. Activate the plugin through the 'Plugins' menu in WordPress |
|---|
| 11 |
1. Place `<?php mdv_recent_comments(); ?>` in your templates. |
|---|
| 12 |
|
|---|
| 13 |
== Configuration == |
|---|
| 14 |
You may pass parameters when calling the function to configure some of the options. |
|---|
| 15 |
Example: `mdv_recent_comments(10, 7, '', '<br />', true, 1)` |
|---|
| 16 |
|
|---|
| 17 |
The parameters: |
|---|
| 18 |
$no_comments - sets the number of recent comments to display |
|---|
| 19 |
$comment_lenth - the number of words to display as a comment excerpt |
|---|
| 20 |
$before - text to be displayed before the link to the recent comment |
|---|
| 21 |
$after - text to be displayed after the link to the recent comment |
|---|
| 22 |
$show_pass_post - whether or not to display comments from password protected posts |
|---|
| 23 |
$comment_style - sets the style of comment to be used |
|---|
| 24 |
1 = "CommenterName on PostTitle" with CommenterName being a link to the comment |
|---|
| 25 |
0 = "CommenterName: WordsOfComment" with WordsOfComment being a link to the comment |
|---|