My tip for peas is that they need full sun, and don't like the mid summer heat. I have had peas in the corner of my garden for two years and they hardly produced anything both years. I decided to move them over to the middle of the garden with much more sun this year, and success! Lots of fruit.
Pro tip: you can pair peas with pole beans on to the same trellis. The peas will be finishing up just as the pole beans are sending their first foot or so of vines up. It takes some careful removal of the pea plants but by doing this you can get both peas and beans in your prime trellis spot in the garden. Runner beans are too early for this to work well though.