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: « 7 6 5 4 [3] 2 1 » Show All

  1. 45
    Jesse

    I see we can already exclude certain categories from this plug-in , but how about being able to narrow to just one topic. Would this be a worth while feature, or have I over looked that.

    Jesse

  2. 44
    Richard

    Thanks, Admin! You’re awesome.

  3. Richard: Add this somewhere in your sidebar file:

    <?php echo ddpa_show_posts(); ?>

  4. 42
    Richard

    Hi Admin!
    Great plugin. Would it be possible to throw the list into another part of the page, for example, in a sidebar? I tried but of course, it only came out as a comment. Did i miss an instruction somewhere? Thanks for all your help!

  5. Jeff: It should work fine with admin posts. The installation I originally wrote it on only had the admin - no other authors.

    Did you enable the setting in the options to display the list on every post? If not, then it will only show up if you manually add this keyword in the posts and pages you want it to show up on:

    <!-- ddpostsbyauthor -->

    If you use that method though, and are using the new style editor in WP, be sure to click the little html button to edit the post’s code directly, or WP will wrap code tags around it thinking its a comment and it may not display properly.

  6. Hi, I’ve enabled the plugin but don’t see it showing up on the page. Is it set to exclude admin entries automatically? All posts currently are by the admin user…

  7. NeO: Glad it worked :) I really do recommend WP 2.0 - lots of nice features, although I do not like the new text editor since it makes it hard to format things manually and add in code, but it can be disabled :)

  8. Awesome Admin! It’s working excellently… now all I have to do is upgrade so that Nicknames are used instead of the admin default! Great plugin I’ll mention it on our webmaster help forum and my next blog post! :)

    Thanks~

    NeO

  9. NeO: Sure.. the previous version of this plugin should work with WP 1.5 :) I updated the article and added a download link for it. Let me know if it works.

  10. Hey Admin,

    I’m currently using v1.5.2 and will upgrade that soon…I have to upgrade my WHM first ;) Any quick fixes for the time being?

    Thanks

    NeO

  11. NeO: What version of WordPress are you using? I recently updated a few things on this script, and it may be using some database fields that are not there in previous versions.

  12. Hey all,

    Any chance that someone could take a look @ my blog and tell me what’s going on with this error?

    WordPress database error: [Unknown column 'display_name' in 'field list']
    SELECT display_name FROM wp_users WHERE ID = 3 LIMIT 1

    I’ve just gained a new author @ my blog and wanted to be able to use a plugin that will show who’s posting what… I’ll leave this up for the rest of the day then I have to pull it so it doesn’t look busted ;)

    Thanks in Advance,

    NeO

  13. The Technocrat: Will do ;)

  14. nice! now that really is lookin’ good. Let me know when you want ideas for 1.5… :-D

    Good job bud, proud to use it.

    http://geeklimit.com/technocrat/last-10-posts/

  15. Version 1.4 has been released. Future-dated posts no longer show up, and the author’s ‘display name’ is now shown instead of the login name. :)

Pages: « 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.