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.7   Updated Sunday, February 22nd, 2009 at 1:13pm

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

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

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

  • 02-22-09 Version 1.7 – Added option to exclude selected categories from showing the post list (previous option was just to exclude posts in cats from being shown in the list – not where the list itself would show).
  • 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 (this option does not prevent the list from being shown on posts in those categories, but rather just the useage of categories in the list – see the option below for that).

Category IDs to not display list on

This is a comma-separated list of categories IDs for categories that you do not want the post list to display on (when using the option to show it on every post).

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: « 1513 12 11 10 9 [8] 7 6 5 4 31 » Show All

  1. I’m using this plugin for our blog
    thanks for incredible support.

    ~cheers

  2. 119
    Eses

    Fatal error: Cannot redeclare ddpa_add_option_pages() (previously declared in /home/xxx/public_html/wp-content/plugins/dd-posts-by-author.php:26) in /home/xxx/public_html/wp-content/plugins/dd-posts-by-author.php

    Help pls.

  3. 118
    Matt

    Sorry about that comment. It just isn’t showing on the index page so it IS working.

    Thanks!

  4. 117
    Matt

    I’ve added this plugin to 2.7.1 but it’s not appearing below the posts, nor at all. It is enabled and checked off to show on all posts.

    I may need to hardcode it in the index page. Any help?

  5. I searched for a plugin which shows the author name on the post page but this plugin is even better. Thanks for that.

    Since I use also a similar posts plugin and wanted to show other author’s posts below I had to turn “Show at the bottom of every post” off and did include it in my single.php template:

    
    <!-- START: show last posts from author -->
    <?php echo ddpa_show_posts(); ?>
    <!-- END: show last posts from author -->
    

  6. Sorry about that last comment, I figured out that the issue was my own. It was a CSS styling problem that only revealed itself once using your plugin.

    Sorry again.

  7. Great plugin and I am currently using it as part of a website I am currently developing.

    I have modified the plugin so that it displays the excerpt from the posts rather than the name, but it works the same none the less.

    One question though:

    Is there some type of built in Cache for this plugin? The reason I ask is that I made a bunch of test posts today and they are still not showing up in the listing. I have the number of posts to show set at 10 but it is still only showing 2 posts. This is happening regardless of if I use the original plugin files or the one I modified.

    Ive played with all relevant plugin settings but have come up with nothing. Ive even tried de-activating it but that does nothing as well.

    Any ideas?

  8. Hi, how can I put the post-by-author’s list in the file index.php? I’ve to place the list out of the loop.

  9. Version 1.7 Released

    This version has been tested in the latest release of WordPress (2.7.1)

    Several people commented that the category exclusion feature was not working. It was, but not in the way some people may have intended.

    The category exclusion option simply prevented posts in particular categories from being added to the list of posts by author. It did not effect *where* the list would be shown.

    A new option has been added so that you can also exclude certain category IDs from showing the list at all. Enjoy!

  10. Hi, great plugin, been using it for a while now but also having problems excluding categories within the settings. Please help :-)

  11. I am also having the problem with excluding categories within the settings. This is a nice plugin that I really hope it will get fixed for the latest Wordpress version!

  12. This plugin is great; it works fine on my 2.7 Wordpress.

    I would like to be able to put a graphic divider between the content of the post and the “Other posts by %A” part of the plugin. I tried inserting the code in the Single.php, but it always showed up after the plugin text. Where in the plugin can I put the simple HTML code for the graphic so it will show up where I want it?

    Thanks

  13. Thank you.

  14. This plugin refuses to work within my site WP2.6.1. Tried different solutions but no luck.

  15. Great plugin. I saw how to use it in the sidebar but is there anyway to use it with a blog that has multiple authors?

Pages: « 1513 12 11 10 9 [8] 7 6 5 4 31 » 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.