I have cedar. Stained for 20 years...about 7 years ago had bees set up camp. To many and to high to kill. So read up and bought highest rated exterior paint I could buy based on consumer reports and based on what I read about these pests. I filled all their holes with silicone then painted. I then had to use my .12ga do deal with the woodpeckers wanting the larva. ..next year they were much much less.. had a few that insisted on drilling through paint...repeated the process for just the holes including a few woodpeckers. This year I made some traps and only caught a couple...and ZERO holes this year.. (that I saw - woodpeckers will knock if I missed any). Bang
The woodpeckers like to attack my shop/office (T-111 siding). Found that hanging a couple CDs from the eves does a good job of scaring them off.