fences?
Huh
I buy pressure treated posts and soak the bottom 18" over night in a spirit based preservative, If yuour local farmer loves you, ask if he happens to have any creosote, illegal but damn its good.
Once posts are soaked and dry, (two days later) set 18" down into concrete.
Consider the wind. Strong winds and a solid fence don't like each other. If your privacy can take it, leave a 2 or 3" gap between the upright panels. If you need it solid you need to add 45 degree braces for every other upright. Think equilateral triangle when they are in. 3 ft up? 3 foot behind.
Treat the posts, cross pieces and panels with spirit based preservative and re-do them every three years, That lot should buy you 25 years of life.