The best thing to do is firstly choose heels that are not more than 4 inches high.
Then always, always make sure your shoes are a perfect fit or a size larger than you'd normally wear. thirdly make sure you are walking properly in your heels.
Knowing how to wear your heels properly will make it a whole lot easier to wear them.
Gel pads also help.
Hope I helped!