A third option is to use the following u bolt type hinge point mounted on the post.
How to build a wood fence gate with metal posts.
The downside to building a fence with wood posts is that you ll likely need to replace the fence in 7 10 years.
This style of wooden fence picket nests together to create a strong fence with little to zero visibility through the fence.
Alternatively you could drill a horizontal hole through the metal post and install the bolt type hinge pin to be mated with the type of bolt on hinge strap in the second following picture.
So if you consider the lifetime of your fence or many wood fences.
Wood posts cost less than metal.
Metal posts last way longer sometimes decades than wood because don t rot or warp.
First construct a metal gate frame using thinner steel pipes than you used for the posts to reduce the weight of the gate.
Assemble the frame pieces with galvanized steel corner brackets.