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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_query results’ is closed to new replies.