Corn works well for pole beans
if you choose the right corn.
Carol Deppe has a good chapter on this in
The Tao of Vegetable Gardening. It needs to be a tall variety with very strong stalks. She does
not recommend her Cascade or Magic Manna corns for regular pole beans. The 5" height of the corn does work for half-runners and other less vigorous beans. For pole beans, you want something like Wapsie Valley or Hickory King, a big, late, large-framed plant. These have higher yields than the earlier smaller corns too. If you want sweet corn, Tuxana has worked well for me, and Country Gentleman or True Gold might as well. Plant the beans after the corn is about 10" tall, and place the corn in clusters a couple of feet wide, with 6 feet between clusters. Carol Deppe plants large areas, so she uses widely-spaced rows (4' apart) with bean plants trained to stay on a single row so the paths aren't blocked, She suggests regular pole beans for the outer rows, and special shade-adapted cornfield beans for the inner rows.
Sunflowers have an advantage: As Will Bonsall points out in his terrific book, they can be planted early, before your last frost date. Being
native to North America, they are used to sprouting when the weather starts to warm, but the nights are still frosty. (They lose this frost hardiness after they are a foot or two high; as adults they no longer have frost-resistance.) If you plant them in threes, with the seeds about 18" apart in the cluster, they make a stable tripod, held together by the beans. Plant the sunflowers about a month before, and the beans after your last frost date.
Rather than using his corn plants for pole beans, Will Bonsall pairs soybeans with them, dropping the soybean seeds into the same furrow as the corn. I believe he uses a 3' spacing between rows.
Grain Amaranth is another plant with the size and strength to act as a trellis. Opopeo and Golden Giant both work well. They are in the 7'-9' range like the tall corns, and can be used in the same way, with the same planting pattern. They are bushier than corn, and the leaf cover can give a bit of frost protection to the beans in autumn. The seedlings are spindly, so you do need to wait a bit. Once they get established, they make very thick, hard stalks that are ideal for trellis. (and can be used for stakes and such when dried after the season) Like sunflowers, they can be planted earlier than corn. However, the seeds are tiny (and the seedlings look just like pigweed) so many people start them in pots or flats and transplant. Or just sow thickly, and thin unmercifully. Use the thinnings for greens--they are good cooked when young. This shows amaranth plants that had a vine growing up the stalks. In this case, it's a morning glory, but beans work the same way. Unfortunately, the photo only shows the tops of the plants, but this variety gets very tall.
golden giant
All three of these trellis plants will benefit from hilling-up around the base just before you plant the beans. You can hoe out any weeds and use the hoe to scrape some soil around the stalk, This gives them more stability, as does planting the sunflower or corn seeds on the deep side.
If transplanting amaranth, you can plant it a bit deeper than the soil level was in the pot. If direct-sowing, the tiny seeds need to be sown just under the surface. Again, planting in triangles gives them much more stability than they would have as either single plants or as a row.