Advanced Most Recent Posts Widget displays your recent posts. It gets posts from selected categories or current category or all posts. When your visitors are at home, it gets posts from all posts or selected category. If you set 'Get posts from current category', when visitors see single post, widget lists posts in the same categories of single post or when visitors click a category link, it gets posts from current category. Plugin could display thumbnails of your posts via a thumbnail custom field or images in content or an image attached to post. (sorry, my English is poor)
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 'advanced-most-recent-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 in your 'sidebar.php' to place 'Recent Posts' on your sidebar. Change the parameters as you want:
- <?php if (function_exists('yg_recentposts')) { ?>
- <li><h2><?php echo 'Most Recent Posts'; ?></h2>
- <ul>
- <?php
- $parameters = array(
- 'limit' => 10, //Number of posts to show
- 'excerpt' => 60, //excerpt length (letters)
- 'actcat' => false, //get posts current category
- 'cats' => '5,6', //Categories to get posts
- '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_recentposts($parameters);
- ?>
- </ul>
- </li>
- <?php } ?>
FAQ
How can I set it to get posts from current category?
Select checkbox on widget's settings called 'Get posts from current category'.
I want to display only the posts in two categories.
You have to write their category's ids -seperated with a comma- to 'Categories to get posts' textbox.
Screenshots
Widget's screenshot in 'Appearance'->'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.
Height, Width - Images size.
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 image of post" for performance. It queries much more.
Categories - Plugin gets posts in these categories. (Category IDs, separated by commas.)
Get posts from current category - Posts will be get from current category (single post's category or current category).
Changelog
= Version 1.0 =
* Initial release version.
Support Language
* English
* Turkish
Notice: If you translate it in your language, please let me know.
Download
My Other English Plugins
- Advanced Most Recent Posts: displays your recent posts by customising easily.
- Random Tags Cloud Widget: A fantastic widget to manage your tags cloud.
- Advanced Random Posts: It shows random posts from selected categories or current categories or all posts, it is very useful.
- Advanced Blogroll Widget: display your bookmarks as you want. You can customize your blogroll displaying.
- Comment Approved Notifier Plugin: sends an e-mail to your commenters when you approve their comments.
Bu yazının kısa bağlantısı http://www.yakupgovler.com/?p=1033.
Yazılarımı RSS aboneliği ile takip edebilir, yeni yazılarıma kolaylıkla ulaşabilirsiniz. Bunun için ise RSS adresimi kullanabilirsiniz.
Tarih: 29 Ağustos 2009 Saat: 13:34
[...] and activities waiting for everyone. The most electrifying thing about Iceland is the weather. 29Ağustos2009Advanced Most Recent PostsWordPressYorum Ekle – yakupgovler.com 08/29/2009 Advanced Most Recent Posts Widget displays your recent posts. It [...]
Tarih: 29 Ağustos 2009 Saat: 14:03
[...] about plugins as of August 29, 2009 Saturday, August 29th, 2009 29Ağustos2009Advanced Most Recent PostsWordPressYorum Ekle – yakupgovler.com 08/29/2009 Advanced Most Recent Posts Widget displays your recent posts. It [...]
Tarih: 31 Ağustos 2009 Saat: 02:47
[...] Eklenti Ana Sayfası [...]
Tarih: 31 Ağustos 2009 Saat: 18:24
not speak english.
Tarih: 01 Eylül 2009 Saat: 14:41
Hey, can you please tell what do I have to modify in order to get exceptions (I only want to see the second, third and forth posts of a category, except the 1st post). Thanks in advance, wonderful plugin 🙂
Cheers
Tarih: 01 Eylül 2009 Saat: 21:50
@rats, find
$query = "cat=$cats&showposts=$limit";
and change this code as:
$query = "cat=$cats&showposts=$limit&offset=1";
It will display second post, third...
Tarih: 05 Eylül 2009 Saat: 16:35
[...] Advanced Most Recent Posts: displays your recent posts by customising easily. [...]
Tarih: 08 Eylül 2009 Saat: 20:19
Is it possible to exclude certain posts in a category also?
Thank you.
Tarih: 10 Eylül 2009 Saat: 23:41
[...] Eklenti Ana Sayfası Paylaş ve Eğlen [...]
Tarih: 16 Eylül 2009 Saat: 03:10
Hello, wonderful plugin. Nice job. One question. How can I make all thumbnails align=left and margin=5px,5px,0px,0px or something like that. I can do it manually for each post, but I would like to do it globally for all. Thank you again.
Tarih: 16 Eylül 2009 Saat: 03:29
@mitch, you can use "recent-posts-thumb" CSS selector. For example:
or you can use "advanced-recent-posts" CSS selector. For example:
Add these codes into your style.css file.
Tarih: 18 Eylül 2009 Saat: 01:13
Thank you kindly. I was mistaken in my css file changes. You have a wonderful plugin and I will speak highly of it.
Teşekkür ederim
İyi Günler
My best Turkish 🙂
Tarih: 20 Eylül 2009 Saat: 19:38
I have translated to spanish, so now if somebody wants it in that language I can help. In that case you will be able to see the widget in spanish instead of english.
Im trying to fix the errors with the accents (spanish).
Greetings from Vera´s Soul (http://www.verasoul.com)
Tarih: 01 Ekim 2009 Saat: 17:16
HI
I am testing this plugin i find the post title show below the image how i can fix this issue
i don't want to show the title below the image i want to show title equal to image
Tarih: 01 Ekim 2009 Saat: 23:36
How can i make it so that the post title is larger and above the image? Currently it is right after the image and looks like it is part of the post content
http://sewmee.com
Tarih: 02 Ekim 2009 Saat: 19:09
Hi yakup
i am not able to fix the title to float in the right side my title shows below the thumb
i pasting the screen shot
http://i33.tinypic.com/u4f4o.jpg
can you help me in this
Tarih: 05 Ekim 2009 Saat: 01:29
this plugin is what i'm looking for. Thanks a lot. I add the following to my style.css file to align the thumbnail to the left and it works like a charm 🙂
.recent-posts-thumb {
float:left;
margin: 5px 5px 0 0;
}
Many thanks
Tarih: 05 Ekim 2009 Saat: 21:04
I've tried and tried to get the categories only feature to work, but I appear to be doing something wrong. I'm running the latest version of WP, by the way.
You need category ID. I input category name, but that doesn't work. I input category "slug," but that doesn't work, either. My WP doesn't appear to generate a category ID beyond name and slug.
Help?
Tarih: 05 Ekim 2009 Saat: 21:56
Nevermind. Google is a wonderful thing.
Tarih: 06 Ekim 2009 Saat: 21:08
Hi, Nice job. I have a question. How can I edit fonts sidebar. I can edit thumbs using .recent-posts-thumb code in css stylesheet, but I can't edit fonts and text.
Thanks a lot!
Tarih: 09 Ekim 2009 Saat: 10:15
I added a line to your plugin to make it possible to customize the output in a theme or another plugin. I would love to send you a patch but am not sure where to send it. Here is the code I added:
Tarih: 12 Ekim 2009 Saat: 20:37
Is it possible to try and align the image and text together? Right now my text is at the bottom edge of the image.
thanks.