Title: issue with parse_main_query
Last modified: July 4, 2020

---

# issue with parse_main_query

 *  [serge rauber](https://wordpress.org/support/users/kalyx/)
 * (@kalyx)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/issue-with-parse_main_query/)
 * Hi,
 * I have a search form on a post type archive. If the search field is empty, the
   parse_main_query function ( frontend/choose-lang.php) set is_home to true, so
   the template home.php is loaded.
    I think you should check the post type before
   set is_home to true because it’s only for posts
 * thanks

The topic ‘issue with parse_main_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/)

 * 0 replies
 * 1 participant
 * Last reply from: [serge rauber](https://wordpress.org/support/users/kalyx/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/issue-with-parse_main_query/)
 * Status: not resolved