Title: Multiple users hack
Last modified: December 20, 2016

---

# Multiple users hack

 *  [Chris J. Davis](https://wordpress.org/support/users/chrisjdavis/)
 * (@chrisjdavis)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/multiple-users-hack/)
 * This hack allows you to have a list of authors, and then sort the posts by them.
   
   ie if you have three authors, and you want the reader to be able to read only
   posts by one of them, the user simply clicks on the name of that author, and 
   the content is filtered. here is the code: go here for the code: chrisjdavis.
   org/authorlist.txt For a sample you can check my website: [http://chrisjdavis.org](http://chrisjdavis.org)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-24567)
 * Looks like a great hack (on your page) but the code just shows up as:
    `Author
   List $data[1] \n"; } ?>
 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-24573)
 * What file does this code go into, and where? 🙂
 *  [otaku42](https://wordpress.org/support/users/otaku42/)
 * (@otaku42)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-24576)
 * @Jesuit: I noticed that on your site the value for “page generated in xyz seconds”
   is wrong. Additionally, when there is no posts from the selected author (test
   it with “Brandon Brown”, author=5), no value for “queries executed” is displayed:
   
   _page generated in 1064395934.905846 seconds : queries executed_ Though I’m not
   sure if this is something that is a result of your mod, because it also can be
   seen when not choosing an author at all. Bye, Mike
 *  Thread Starter [Chris J. Davis](https://wordpress.org/support/users/chrisjdavis/)
 * (@chrisjdavis)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-24577)
 * **otaku42**: Well as for the page generated that is stock from the factory as
   it were, so if it is broken it is not something I did. I am going to look into
   it, but probably will be taking it off, since it doesn’t serve any real purpose
   for me.
    **Cena**: Sorry I thought that would be obvious, simply place an include
   in your page that points to the author.php file. i.e. for my purposes below the
   emails I have `<?php include("author.php"); ?>` You could insert the code directly
   into the page, but I prefer to include this sort of thing so any changes can 
   be made on all pages at once. Let me know if there is anything else that deals
   with this hack.
 *  [thepimpress](https://wordpress.org/support/users/thepimpress/)
 * (@thepimpress)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-25120)
 * Even better:
    <?php $query = “SELECT ID, user_nickname from $tableusers where
   user_nickname <> ‘admin’ ORDER BY user_nickname”; $result =mysql_query($query);
   while ($data = mysql_fetch_row($result)) { echo “$data[1] \n”; } ?> Maybe someone
   finds this useful. (the &92; in the last row is supposed to be a backslash in
   the source-code
 *  Thread Starter [Chris J. Davis](https://wordpress.org/support/users/chrisjdavis/)
 * (@chrisjdavis)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-25254)
 * I have added a link to the updated the code for this hack to the wiki;
    [http://wiki.wordpress.org/index.php/WPHacks](http://wiki.wordpress.org/index.php/WPHacks)
   Look under Just because it can be done mods Later
 *  Thread Starter [Chris J. Davis](https://wordpress.org/support/users/chrisjdavis/)
 * (@chrisjdavis)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-25255)
 * Done and Done Matt. I also added a page for my other hack, last (n) comments.
   
   Chris
 *  Thread Starter [Chris J. Davis](https://wordpress.org/support/users/chrisjdavis/)
 * (@chrisjdavis)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-25256)
 * This hack is now officially dead.
    If you want one that works just as well, go
   to the wiki and get matt’s sanatized version. Latest(n)Comments is dead as well,
   as is the copyright hack, at least as far as releasing them to the general public.
   You will still be able to find the code [@http](https://wordpress.org/support/users/http/)://
   www/chrisjdavis.org but I won’t be releasing them here anymore. I might announce
   when something has reached a decent level of maturity, but that is about it. 
   Peace people. Chris

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Multiple users hack’ is closed to new replies.

 * 8 replies
 * 4 participants
 * Last reply from: [Chris J. Davis](https://wordpress.org/support/users/chrisjdavis/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/multiple-users-hack/#post-25256)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
