Been a long, long time, but when I was a kid we used to bait both ferral pigs and javalina into traps (actually pens with one-way gates). Shelled corn was all we used, but it worked so well we never had to use anything else. Took the critters a while too find it sometimes, but once they did, you had to lock the gates when you didn't want any more pigs. They kept nosing into the pens looking for more, even when there wasn't any. Seemed that they were kinda like bears- once they found a food source, they kept coming back for more. That's cuzz we'd have as many as half a dozen come in overnight, but took only the one we wanted and turned out the rest.