Wood is probably the toughest surface for the paint to adhere to and which is a good primer is required for the same. .
So, always take the help of your local hardware store in identifying the right primer for your project and allow it to rest and dry for the time specified.
Make sure you can see no bumps or drips in the paint. This will help you to achieve a professional look.