Title: Plugin breaks get_posts with &#8216;author&#8217; parameter
Last modified: January 13, 2017

---

# Plugin breaks get_posts with ‘author’ parameter

 *  Resolved [Joerg Gebauer](https://wordpress.org/support/users/newshoremedia/)
 * (@newshoremedia)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-breaks-get_posts-with-author-parameter/)
 * Hey there,
 * your plugin (which is very useful, btw) breaks a get_posts query for a custom
   post type and the author parameter.
 * This here doesn’t work and returns all post types BUT the post type in the arguments:
 * $posts = get_posts(array(
    ‘post_type’ => ‘myCPT’, ‘order’ => ‘ASC’, ‘author’
   => 1, ‘posts_per_page’ => -1 ));
 * While this here works:
 * $posts = get_posts(array(
    ‘post_type’ => ‘myCPT’, ‘order’ => ‘ASC’, ‘author__in’
   => array(1), ‘posts_per_page’ => -1 ));
 * It’s a workaround for the time being, but you should take a look at this.
 * Keep up the great work!
    Cheers

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [motopress](https://wordpress.org/support/users/motopress/)
 * (@motopress)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-breaks-get_posts-with-author-parameter/#post-8697354)
 * Hi Joerg,
    Could you update plugin to latest version and check if it is fixed.
   If the issue persists you can describe the issue more detailed and providing 
   this information by email. Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Plugin breaks get_posts with ‘author’ parameter’ is closed to new replies.

 * ![](https://ps.w.org/mp-timetable/assets/icon-256x256.png?rev=2665792)
 * [Timetable and Event Schedule by MotoPress](https://wordpress.org/plugins/mp-timetable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mp-timetable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mp-timetable/)
 * [Active Topics](https://wordpress.org/support/plugin/mp-timetable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mp-timetable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mp-timetable/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [motopress](https://wordpress.org/support/users/motopress/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/plugin-breaks-get_posts-with-author-parameter/#post-8697354)
 * Status: resolved