Preserve query string adding new post type WORDPRESS
global $query_string; parse_str( $query_string, $args ); $args['post_type'] = array( 'my_post_type', 'my_second_post_type' ); query_posts( $args );