Display posts from X specific authors on your WordPress blog

July 27, 2009 at 9:46 am

If you have a multi-author blog, you may want to be able to display only posts from two (or more) authors. While it may seems to be a bit hard to do, it is definitely not. Just read this recipe to know how to do it.

As I said in the post excerpt, this is very easy to do. The first thing to know is to get the IDs of the authors you’d like to list the posts. In this example, I want to list posts from authors 1 and 6.

Simply type the following in your browser adress bar:


Et voilà! WordPress is listing posts from 2 distinct authors. You can add more authors, simply separate all IDs with a comma.