If you feed hummingbirds you will attract yellow jackets too. One way to trap them is use a plastic soda bottle. Punch some holes about 1 inch from the bottom; pour some orange pop in the bottom and hang up. I used a phillips screw driver and did 4 holes.
I found a set of three glass bottle wasp traps that are nice to hang up, they look a little better than the soda bottles. They have holes in the bottom the yellow jackets enter but can’t escape; they only fly up.
I add a little sugar to the pop too that helps attract them.
The one below I just cleaned and refilled yesterday; I just checked and it has 5 dead yellow jackets in it.
Smokin Don