Shoot them
If you have woodpeckers, you might have carpenter ants or something in your house. Id look into pest control or even placing a feeder on a tree away from your house. Give them a little bit of an incentive to eat somewhere else.
Look into building a woodpecker house to put up where you have issues with them. They're easy to build and they do work. You can find plans with a quick Google search.
Thanks! Your answer is awaiting moderation.