Got to agree with Scotty 370 and Mark V.
Wood will eventually rot when in contact with soil, the ground.
Much depends on your climate and soil conditions and the treatment of the posts.
In the old days the Utility Companies treated their Utility Poles with Creosote.
Now, it has been decided that Creosote is a cancer causing chemical.
I like the idea of concrete set in the ground, below frost line, with the Post bearing on the concrete, above grade.
That is how we build Decks (in the Frost Belt).
Pole Barns ,even my own ,was built with treated posts, set 4ft into the ground, bearing on precast concrete "Disks" about 18" in diameter.
We will see how they hold up.
Lots of opinions.
I do not like concrete, "encapsulation" or anything that holds moisture to the Posts. Just my opinion......