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.6   Updated Wednesday, September 26th, 2007 at 5:17pm

Posts by Author Plugin for WordPress

This plugin will show the last X posts by the current author either at the bottom of every post, or where you manually specify in each post. Using the built-in options page, you can choose the number of posts to show, set the header text, choose to show the post dates, select the format of the date, and choose whether or not to include the current post in the list. Other options have been added since the first release.

Download

Instructions

  • 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 DDPostsByAuthor).
  • Test it out by viewing a post.

Change Log

  • 09-26-07 Version 1.6 - Updated for WordPress 2.3. ‘Load Default Options’ button added. Fixed bug where pages would sometimes be listed.
  • 05-16-07 Version 1.5 - Updated for WordPress 2.2.
  • 05-22-06 Version 1.4 - The author’s ‘display name’ is now shown instead of their login name. Also, future-dated posts no longer show up in the lists.
  • 05-21-06 Version 1.3 - A bug was fixed where posts would show up multiple times if they were in multiple categories.
  • 04-19-06 Version 1.2 - Option added to sort posts by date - newest or oldest first. I have also added support for category exclusion. So posts from specified categories will not show up in the recent post lists. A bug was also fixed where the list would also include pages and attachments. It now just shows published posts.
  • 04-05-06 Version 1.1 - Comments bug fixed - they will now work properly when this plugin is enabled. Added option to enable/disable post list on every page. You can also now call the plugin manually in a post. A few other fixes as well, including a new option to include the current post in the list.
  • 03-30-06 Version 1.0 - First release.

Options

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

Show at the bottom of every post

If enabled, this plugin will generate its data at the bottom of every post, before the comments section.

NOTICE: No matter what you have this set to, you can also manually call this plugin by entering the following line where you want the data to be shown in your post:

<!-- ddpostsbyauthor -->

Number of posts to show by author

This is the number of posts by the current author that will be shown at the bottom of each post.

Text to show before list

This is the header for the post list. If you want to use the author’s name in this text, use %A.

Category IDs to exclude from post lists

This is a comma-separated list of categories IDs you want to exclude from the recent post lists.

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)

Include current post in list

This sets whether or not the post being viewed should show up in the list of recent posts by the current author.

Show newest posts first

If checked, this will show the newest posts first in the list. If not checked, it will show the oldest posts first.

Pages: « 8 [7] 6 5 4 3 2 1 » Show All

  1. Very useful plugin for multi-author blog. I installed it on WP ver 2.6 and it works great.

    Is is possible to also extend this plugin to provide a widget to show Author names and corresponding posts by each author. Also author name will hyperlink to all posts by that author. Customization options could be to sort by name or by number of posts, to show only authors with more than one post etc.

    Authors:
    name1 (#)
    name2 (#)

    Looking forward to this widget.

  2. Loved the idea of this plugin. sadly i cannot get it 2 work. using wordpress 2.6.1 might have something to do with it. suks =( Im stuck! please update / fix this plugin

  3. that plugin looks to be exactly what I’m looking for, thnx.
    I’ve got an idea. This option and should be filtering authors’ post numbers. Show display only authors up to 2, 3, 4 or 5 posts

  4. I installed it on my WP 2.5.1 but it didn't automatically show the info at the bottom of every post, even though I have had chosen that in the setting. How can that be fixed?

  5. I installed it on my WP 2.5.1 but it didn’t automatically show the info at the bottom of every post, even though I have had chosen that in the setting. How can that be fixed?

  6. Max,

    I modified the ddpa_show_posts function a bit to allow posts by author outside the loop. Take a look at my site to see what I mean, it’s on the right hand side under each author. If you’d like I can email you the chances I made.

    Note that I don’t use dates or anything like that, which did make it easier.

  7. Sorry forgot the code tags. I’m using the following code on the author template page:

    <!-- The Loop -->
    <?php echo ddpa_show_posts(); ?>
    <!-- End Loop -->

  8. Hello, thankyou for this great plugin! Just discovered your site and I look forward to checking things out :)

    I’m having the same problem as Corey… categories are still being included regardless of what I enter in options. It might be handy to know that I am using the plugin to list posts on the author template page only (and not on the actual post pages) using:

    Also, page navigation does not work with the plugin. So I have to enter 100 posts as the max number of posts to display (for now) … Is there a way we can use page navigation?

    Thanks for your time.

  9. Thanks for the pluggin. It works ALMOST as expected.

    For some reason, excluding a particular category doesn’t work for me. All other settings work fine, but when I put the ID number of a category I want to exclude from an author’s recent posts, all posts by that author still show up.

    Also, since can be added to individual posts, one thing that would come in very handy is a button that inserts that code automatically in the tiny editor. That way users wouldn’t have to look up the code and copy it every time they wanted to use it. They wouldn’t even have to switch to code view. Just an idea for future releases.

  10. 96
    Josef

    Yes , Max i have tried to find it but no result. You can do that via MT ( Movable Type ) but i like more WP . Lets dearch over the net and please let me know if you find any info ….

    Regards
    Josef

  11. I’d really like to see a way to use this OUTSIDE the loop, as I want to have a short menu in my sidebar with a list of authors and their respective latest entry. I haven’t been able to find any other plugin that even comes close…

  12. 94
    Josef

    Hello guys !
    I like this plug-in and works very good . I want to ask all of you if you know any plug-ins that can add an extra field to the write post function and to will able to add different name for the post writers . Am running a news magazine website and peoples sending us there articles and are just 2 who manage the whole website.

    I will be more than happy for any tips and advice.

    Kind regards
    Josef

  13. hello! I cant get the plugin to work.. I have done what it said, changed the name and activated the plugin. But no names is showing at the end of my posts..
    Is there anything else i have to do?

    please answer by mail..
    Regards Emma

  14. Ok, now I feel dumb. I suppose I should’ve tried the plugin before I commented. It appears as though it does, in fact, work outside the loop for me. I don’t know if it makes a difference, but I’m using a different sidebar specifically for my single article page. I used this code…

    <?php echo ddpa_show_posts(); ?>

    It works perfectly. Thanks!

  15. Hello,

    This plugin looks to be exactly what I’m looking for, except… Is it at all possible to use this OUTSIDE the loop? And I mean in ANY way possible ie. multiple loops etc. I can’t seem to get this to work on my own (without this plugin) but this looks to be my saving grace. See, what I’d like to do is put current author information in my sidebar. Grabbing things like description and email and whatnot works just fine, but getting a list of recent posts has been a nightmare. Any advice would be greatly appreciated.

    Thanks,
    Tyler

Pages: « 8 [7] 6 5 4 3 2 1 » 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.