Your local home depot has a whole section of magnets that will work..
Go check them out and see what works for you..
I would avoid the adhesive flexible magnets and go with the better iron/neodymium type even though the pull strengths you require should be fairly low (I'm assuming you just need something to hold the wood in the vertical plane and they they won't be relied on to carry any of its weight right?)