Title: listing by author
Last modified: May 7, 2020

---

# listing by author

 *  [Filmskisan2015](https://wordpress.org/support/users/filmskisan2015/)
 * (@filmskisan2015)
 * [6 years ago](https://wordpress.org/support/topic/listing-by-author/)
 * Hi there,
 * I would like to use your plugin A-Z listing on my website to have specific listing
   of my post for author only, not for category. Do you have shortcode for that?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flisting-by-author%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dani Llewellyn](https://wordpress.org/support/users/diddledani/)
 * (@diddledani)
 * [6 years ago](https://wordpress.org/support/topic/listing-by-author/#post-12806132)
 * Hi,
 * The plugin doesn’t do this natively. You can, however, hook into the filter `
   a_z_listing_query` using PHP to modify the query by adding the required parameters.
   Something like below _might_ work when added to your theme’s `functions.php` 
   file:
 *     ```
       add_filter( 'a_z_listing_query', 'add_user_to_a_z_query' );
       function add_user_to_a_z_query( $query ) {
           $query['author'] = 123; // Set to ID of a user
           // alternatively $query['author_name'] = 'Administrator'; // Set to a user's name
           // alternatively $query['author__in'] = array( 1, 2, 3, 4 ); // Set to multiple ID numbers of users
   
           return $query;
       }
       ```
   
    -  This reply was modified 6 years ago by [Dani Llewellyn](https://wordpress.org/support/users/diddledani/).
      Reason: fix `author__in` array index

Viewing 1 replies (of 1 total)

The topic ‘listing by author’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/a-z-listing_d8edfd.svg)
 * [A-Z Listing](https://wordpress.org/plugins/a-z-listing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/a-z-listing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/a-z-listing/)
 * [Active Topics](https://wordpress.org/support/plugin/a-z-listing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/a-z-listing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/a-z-listing/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dani Llewellyn](https://wordpress.org/support/users/diddledani/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/listing-by-author/#post-12806132)
 * Status: not resolved