Orioles are attracted to nectar and/or fruit. Ideal foods inlcude nectar (sugar solutions you can buy or make), orange halves or sections, and grape jelly.
And you can purchase ant moats ▶
separately for feeders that don't have them built in."Hey, hon, how 'bout dem O's!!!"