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: « 2217 16 15 14 13 [12] 11 10 9 8 71 » Show All

  1. Super plugin was using it for the longest time but
    not sure what happened but ver 1.5 worked great I upgraded to 1.7 and now even though I have on the front page post at the bottom nothing is displaying.

    Any ideas on where to look ?
    best,
    Lewis

  2. excluding some categories option is need.

  3. 178
    Johan

    I like this plugin!

    I am looking for the following extension, as i will have a lot of categories.

    List the lastest n posts of a selectable list of categories
    - number of posts per cat (n)
    - which cats to show (list)

    a inspiration sample can be found at z.nu.nl

  4. i really like this plugin, and have used it for a long time. the 2.3.1 upgrade threw me for a loop for a little while, but after getting in and getting dirty, i finally have everything fixed back up. i keep getting this error:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/0/d144193462/htdocs/texas-fire/wp-content/plugins/dd-latest-from-each.php:435) in /homepages/0/d144193462/htdocs/texas-fire/wp-includes/pluggable.php on line 391

    i have been all over the WP forums and done all of what the FAQ suggests to fix it (clean the whitespace, check for carrige return) but to no avail. any suggestions ?

  5. Good news, the delay is over, it now picked up the new post. Strange that it took a couple of hours, but at least it did it on its own.

    So just that other question left in case you have any thoughts on it, thanks again!

  6. Great plug-in, really nice. Two things:

    I just added a post, but the plug-in hasn’t noticed it — it is still showing the previous post in that Category as the recent one. I see that in Comment #63 someone else had a similar issue, which seemed to be fixed at that point, but something’s up again. Any thoughts?

    Second thing, much less pressing, well, just see my Comment #169 :)

    Thanks again for a great plug-in.

  7. Thanks for a great plugin, it works like a charm!

    A suggestion / request if such a thing is possible:

    - The option to hide or show the category name, so only the titles of the posts and their first words show up and are used as links to them; I’m going for a very minimalist navigation…

    Keep up the good work! Cheers.

  8. 173
    WordPress Lover

    Hi, heheh, it’s me again =P. For this plugin, I’m just wondering if you could add the [Author Name] and an Option to “Turn Author Names into links.”

    It’s also helpful to have another Option to check the Category we don’t want to display the post (like the Similar Post Plugin by rmarsh.com/plugins =). Please, please add this Option as this will make this plugin more powerful!

    *Hehe, here a sidenote: I plan to use this for an ezine articles site like ezinearticles.com, so the format for the display (which means I’ll hack your plugin =) is as follow:

    [Post Title] [By Author Name] [in Category Name] [on Date Format] [- Post Excerpt]
    //This format helps the flow = ‘make sense’ (e.g. Option to not show [on Date Format]: [Post Title] [By Author Name] [in Category Name][ - Post Excerpt].

    //Your current display format: [Category][Post Title - ][Date][Excerpt].

    Hope I make some sense/sensible suggestions xP. O.K. See you later D[r]agonDesign.

  9. 172
    Jon Bennett

    Is there a way to only show 1 particular categories’ latest posts?

  10. Very helpful plugin!
    But why is it not working, when I’m inserting it into the text widget?
    Thank you!

  11. Version 1.7 Released

    This update adds support for WordPress 2.3, and will also still work in 2.1 and 2.0.

  12. I see that you can limit the list to a certain number of categories, but is it possible to limit the output to a particular set of categories? E.g., if I only and always want it to shows categories 1, 4, 5, and 7, is that possible?

  13. Is there an easy way to mod this so you can have it be Latest post from a certain category?

  14. Hello,

    People that view my blog with IE 6 are having a problem. The plugin is displaying the list all the way at the bottom of the page.

    anyone else having this issue or know of a fix.

  15. Very nice.
    How do I add the last posts to the plugin?

    thanks for your hard work.

Pages: « 2217 16 15 14 13 [12] 11 10 9 8 71 » 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.