Splicing wall plates at doors and windows?
You mentioned the obvious solution in your question. Just build the wall in different segment lengths to avoid windows and doors. 

Another option is to simply set the head er after the two wall segments are stood up. 

Don't overthink it. Just do what seems convenient at the time. All the pieces end up in the same places anyway.