29 Ağustos 2009

Advanced Most Recent Posts

WordPress Yorum Ekle

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

  1. Make sure you are running WordPress version 2.8 or better. It won't work with older versions.
  2. Download the zip file and extract the contents.
  3. Upload the 'advanced-most-recent-posts' folder to your plugins directory (wp-content/plugins/).
  4. Activate the plugin through the 'plugins' page in WordPress.
  5. 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]

    • $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);
      ?>

  • [/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

    Advanced Most Recent Posts

    My Other English Plugins

    1. Advanced Most Recent Posts: displays your recent posts by customising easily.
    2. Random Tags Cloud Widget: A fantastic widget to manage your tags cloud.
    3. Advanced Random Posts: It shows random posts from selected categories or current categories or all posts, it is very useful.
    4. Advanced Blogroll Widget: display your bookmarks as you want. You can customize your blogroll displaying.
    5. 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.


    “Advanced Most Recent Posts” yazısı için 22 Yorum

    Bu yazıya yapılan yorumları dilerseniz, ( RSS 2.0 ) beslemesini kullanarak takibe alabilirsiniz.

    1. T Jantunen.com » Posts about Blog Traffic as of 29 August, 2009 dedi ki:

      [...] 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 [...]

    2. Posts about plugins as of August 29, 2009 | All About WordPress dedi ki:

      [...] 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 [...]

    3. Advanced Most Recent Posts | Eklenti.net > Wordpress Eklentileri dedi ki:

      [...] Eklenti Ana Sayfası [...]

    4. emin dedi ki:

      not speak english.

    5. rats dedi ki:

      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

    6. Yakup Gövler dedi ki:

      @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...

    7. Recent Commented Posts dedi ki:

      [...] Advanced Most Recent Posts: displays your recent posts by customising easily. [...]

    8. Ed dedi ki:

      Is it possible to exclude certain posts in a category also?
      Thank you.

    9. Advanced Most Recent Posts | Burda Heran Hersey Olabilir dedi ki:

      [...] Eklenti Ana Sayfası Paylaş ve Eğlen [...]

    10. mitch dedi ki:

      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.

    11. Yakup Gövler dedi ki:

      @mitch, you can use "recent-posts-thumb" CSS selector. For example:
      [css]
      .recent-posts-thumb {
      float:left;
      margin: 5px 5px 0 0;
      }
      [/css]
      or you can use "advanced-recent-posts" CSS selector. For example:
      [css]
      .advanced-recent-posts img {
      float:left;
      margin: 5px 5px 0 0;
      }
      [/css]
      Add these codes into your style.css file.

    12. mitch dedi ki:

      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 :)

    13. Vera dedi ki:

      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)

    14. roger dedi ki:

      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

    15. Megan dedi ki:

      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

    16. roger dedi ki:

      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

    17. mazdink dedi ki:

      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

    18. rich miller dedi ki:

      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?

    19. rich miller dedi ki:

      Nevermind. Google is a wonderful thing.

    20. cristian dedi ki:

      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!

    21. Josh Harrison dedi ki:

      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:

      [code]
      $list_item = 'ID) . '" title="'. $post_title .'" >' . $image . $post_title . '' . $excerpt . "";
      $postlist .= apply_filters('yg_recent_posts_listitem', $list_item, $post);
      [/code]

    22. Edward Kingston dedi ki:

      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.