Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.92   Updated Tuesday, July 7th, 2009 at 6:18pm

Latest Post from each Category plugin for WordPress

This plugin displays a list of the latest post from each category of your WordPress installation. It can be added to a post or page, or used directly in a template file. In the plugin’s options page you can choose the sort order, show or hide the dates, select the date formatting, show the first X characters of the content, display a link to the comments, and show comment counts, as well as other options.

Download

  If you have found this page useful, please consider donating. Thanks!

Installing

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin.
  • Configure the plugin options (under DDLatestFromEach).

Using

There are two ways you can use this plugin.

1) In a post or page, insert the following line:

<!-- ddlastfromeach -->

2) In a template file, insert the following code:

<?php echo dd_last_from_each(); ?>

Change Log

  • 07-07-09 Version 1.92 – Slight change to the way the list is displayed.
  • 07-06-09 Version 1.91 – You can now choose how many posts per category to display.
  • 02-19-09 Version 1.9 – Added option to use only selected categories.
  • 08-14-08 Version 1.8 – Tested with WordPress 2.6. Now uses WordPress function for determining date/time to show up to date posts. Added option to exclude categories.
  • 09-27-07 Version 1.7 – Updated to support WordPress 2.3. Added ‘Load Default Options’ button.
  • 05-31-07 Version 1.6 – Better support for international date formatting
  • 05-16-07 Version 1.5 – Updated for WordPress 2.2
  • 02-20-07 Version 1.4 – Updated for WordPress 2.1 (new pages were showing up in the default category)
  • 08-09-06 Version 1.3 – Added options to show comment links and counts. Also added an optional limit to the number of links shown, and a few other fixes.
  • 06-03-06 Version 1.2 – Added an option to turn category names into links. A bug was also fixed where extra slashes were being shown in the header text.
  • 05-31-06 Version 1.1 – You can now choose the sort order of the output, hide password-protected posts, and show the first X characters of the content after each post. A few other fixes have been made as well.
  • 05-30-06 Version 1.0 – First release.

Demo

Here you can see the plugin in action:

Latest Post From Each Category

Options

Here are the options available in this plugin’s options page in the WordPress admin panel.

Header text

This is shown above the list of posts.

Sort order

You can choose to have the data sorted by category or date. You also have the option of ascending or descending on both.

Show link to comments

When enabled, this will add a link to the comments for each post listed.

Include number of comments

This option only applies if Show link to comments is enabled. It adds the number of comments to the comment link.

Include link for posts with no comments

This option only applies if Show link to comments is enabled. It allows you to include or hide the comment link for posts with no comments.

Turn category names into links

Enabling this option will turn category names into links to the categories.

Hide password-protected posts

This prevents password-protected posts from showing up.

Show date after listed posts

This will show the post date after each post in the list.

Date format

If you are showing the date after posts, this will allow you to configure the date format (using the standard PHP date() format)

Show first X characters of posts

This allows you to show a preview of the content under each post in the list.

Number of characters to show

This lets you specify how many characters of the content will be shown, assuming you have the previous option enabled.

Limit list to X categories

This allows you to set a limit on the number of categories that will be shown in the list. Set to 0 for no limit.

Excluded category IDs

This is a comma-separated list of category ID’s you want excluded from the list.

Included category IDs

This is a comma-separated list of category ID’s you want to use in the list. This option only applies if you are not using the excluded category IDs option.

Max posts per category

If you would like to show more than one post per category, you can change the number here. To display all posts, use 0.

Pages: « 21 20 [19] 18 17 16 15 14 13 12 111 » Show All

  1. Thanks for shared nice Plugin

  2. I’m enthusiastic about Dagon Design Plugins. I wonder if the plugin would work for adding short code to a post for the purpose of bringing in content to that post from a specific category.

    I’ve uploaded the plugin an had a look at the settings. It looks like it wasn’t designed to do what I want to do but, while I await a response, I may see if the plugin can be customized to do what I want to do.

    Thanks for your reply!

  3. Vielen Dank für diesen Vorschlag. Ich schicke Dir einen Gruß aus Deutschland.

    Thanks for the suggestion. I send you regards from Germany.

  4. Hello

    Thanks for a great plugin, but how do I make it display the excerpt (if there is one) rather than the content?

    Thanks

  5. 281
    julien

    Have un probleme with download link

  6. I’ve managed to get the attached image from each post to display,
    add the following around line 445:

    $id = $posts->ID;
    $attachments = array();
    $attachments =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . $id );
    if (array($attachments)) $attachment = array_shift($attachments);
    $id = $attachment->ID;	
    $image = wp_get_attachment_image_src($id);
    $the_output .= "<img src=\"$image[0]\" class=\"mythumb\" alt=\"{$attachment->post_content}\" width=\"$image[1]\" height=\"$image[2]\" />"."\n";
    

    This works for me, I’m sure there will be php warnings if the post doesn’t have an attached image, or maybe if there’s more than one.

  7. Great plugin, thanx
    I’m trying to get it to display the first image from each post.
    here’s the addition, but it’s not working for me yet.
    If you have any ideas, look forward to them.

    $id = $posts->ID;
    		$image = wp_get_attachment_image_src($id, $size = 'thumbnail');
    		
            $the_output .= "<img src=\"$image[0]\" class=\"mythumb\" alt=\"{$attachment->post_content}\" width=\"$image[1]\" height=\"$image[2]\" /></a>"."\n";
    	

  8. 278
    mike

    This plugin doesnt work when wp-security-scan(http://semperfiwebdesign.com/plugins/wp-security-scan/) plugin is also enabled.
    Plz rectify the problem!!!

  9. goood

  10. Hi, I’ve downloaded this plugin, renamed it to .php and added it to a folder within my plugins directory. The plugin shows up in my WP plugin list.

    When I activate, it, the screen fills with php code and pushes my WP Admin screen down to the bottom. What am I doing wrong?

    I can’t install this plugin correctly.

    It would be easier if could be added automatically though WP Admin.

    Thanks for any help, Richard

  11. 275
    German

    Hello,

    this plugin is great!!
    But, could you tell me please how to show the several post for each category in differents columns?
    I was trying to do it using css, but I couldn’t do it.

    Thank you!

  12. Great plugin, thank you very much!

  13. Hi, Is there a way to hide the category name? Is it possible to alter the plug-in just to hide the category names?

    Thanks…

  14. 272
    Jay

    I have been reading the comments and I am amazed at how the author has managed to take in some feedback to develop this plugin further.

    Honestly, its a well thought out plugin and it does what it says and works perfectly.

    My sugguestion is: if this plugin had a thumbnail option that could be inserted via custom fields, it would be a cool feature!

    For people who need some clarification as to how to get this plugin to work the lastest version of wp:

    1. Download the above file, rename it from .txt to .php.

    2. Make a new empty folder and rename that to “dd-lastest-from-each”.

    3. Place the “dd-lastest-from-each.php” file into the new folder you just created and compress it into a .zip file.

    4. now you can add the new plugin as normal.

  15. Great plugin! i am definetly going to use it!

    All the best,
    Laurentiu

Pages: « 21 20 [19] 18 17 16 15 14 13 12 111 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.