• 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.