Title: Polylang and custom query…
Last modified: August 21, 2016

---

# Polylang and custom query…

 *  Resolved [sbckmstr](https://wordpress.org/support/users/sbckmstr/)
 * (@sbckmstr)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-and-custom-query/)
 * Hi there,
 * Is there currently a way to use modified query vars with Polylang enabled?
 * Polylang currently prevents custom post types from showing alongside regular 
   posts on my ‘Latest’ page using the following custom query:
 *     ```
       $args=array(
           'post_type' => array( 'magazine', 'presse', 'post' ),
           'post_status' => 'publish',
           'posts_per_page' => 8,
           'orderby' => 'post_date',
           'order' => 'DESC'
       );
   
       $query = new WP_Query($args);
       ```
   
 * Disabling Polylang gets the posts to appear correctly. Is there any way to get
   this to work?
 * Thanks in advance…
 * Simon
 * Permalinks: [http://www.rootsite/%category%/%postname%/](http://www.rootsite/%category%/%postname%/)
   
   Static front page.
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-and-custom-query/#post-4767516)
 * did you enable language management for your custom post types?
 *  Thread Starter [sbckmstr](https://wordpress.org/support/users/sbckmstr/)
 * (@sbckmstr)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-and-custom-query/#post-4767519)
 * OK fixed.
 * I had already enabled language management for the custom post types, but I had
   not tagged all the posts with a language.
 * Added the default language to all the posts and now it’s all working.
 * Thanks for the quick answer and the nudge in the right direction!
 * Simon

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

The topic ‘Polylang and custom query…’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [sbckmstr](https://wordpress.org/support/users/sbckmstr/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-and-custom-query/#post-4767519)
 * Status: resolved