Title: wp_query results
Last modified: August 21, 2016

---

# wp_query results

 *  [waldermort](https://wordpress.org/support/users/waldermort/)
 * (@waldermort)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_query-results/)
 * Took me a while to find the problem but it seems that polylang is filtering the
   database query string used by WP_Query. This is just wrong. These low level functions
   should not be tampered and at least should have an option on the settings page.
 * I have a simple query:
    `WP_Query( array( 'post_type'=>'page', 'author'=>$curr_user));`
   The intention is (as you guessed) to return all pages written by that user. But,
   due to the filtering, only pages marked with the current language are returned.
   I suggest the filtering take place somewhere else as this is going to break other
   plugins that rely on these functions.
 * [http://wordpress.org/plugins/polylang/](http://wordpress.org/plugins/polylang/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/wp_query-results/#post-4082494)
 * > I suggest the filtering take place somewhere else as this is going to break
   > other plugins that rely on these functions
 * ‘pre_get_posts’ is used. Which other filter would you suggest?
 * To get all languages, you can rewrite your query as below:
 *     ```
       WP_Query( array( 'post_type'=>'page', 'author'=>$curr_user, 'lang'=>'' ) );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘wp_query results’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/wp_query-results/#post-4082494)
 * Status: not resolved