Installation
- Make sure you are running WordPress version 2.8 or better. It won't work with older versions.
- Download the zip file and extract the contents.
- Upload the 'recent-commented-posts' folder to your plugins directory (wp-content/plugins/).
- Activate the plugin through the 'plugins' page in WordPress.
- See 'Appearance'->'Widgets' to place it on your sidebar. Set the settings
If you don't use 'Widgets', add following codes (Click "Kodu Al" to copy textplain) in your 'sidebar.php' to place 'Recent Commented Posts' on your sidebar. Change the parameters as you want:
- if (function_exists('yg_recentcommentedposts')) { ?>
-
echo 'Recent Commented Posts'; ?>
-
-
- 'limit' => 10, //Number of posts to show
- 'excerpt' => 60, //excerpt length (letters)
- 'cusfield' => 'thumbnail', //custom field name of thumbnail image
- 'w' => 48, //width
- 'h' => 48, //height
- 'firstimage' => true, //get first image of post content
- 'atimage' => false, //get first attached image of post
- 'defimage' => 'http://www.yakupgovler.com/default.jpg' //default thumbnail image
- );
- //print most recent posts
- yg_recentcommentedposts($parameters);
- ?>
-
-
- } ?>
Screenshots
Widget's screenshot in 'Apperance'->'Widgets'
Options
Widget's options allow you to change your random posts list displaying. Title - Your random posts widget's title on your sidebar. Number of posts to show - How many posts to display Excerpt length (letters) - You know that Thumbnail Custom Field Name - If you want to display the thumbnail of your posts via a custom field, write its name. Get first image of post - If you don't want to use custom field, plugin will get first image from your post content. Get first attached image of post - Plugin gets first attached image of post. Default image - If post has no image, plugin display this image. Ex: http://www.yakupgovler.com/default-image.png Notice: If you use three options, plugin uses custom field image firstly. If the post has no custom field, it gets first image from content. At last it gets first attached image. I suggest not to use "Get first attached image of post" for performance. It queries much more. Height, Width - Thumbnail image dimensions.
Changelog
= 1.1 = * Fixed a bug about displaying double post. = 1.0 = * Initial release version.
Support Language
- * English
- * Turkish
Notice: If you translate it in your language, please let me know.
Hiç yorum yok:
Yorum Gönder