We give a characterization of the class Co(F ) [Co(F n ), n < ω, respectively] of lattices isomorphic to convexity lattices of posets which are forests [forests of length at most n, respectively], as well as of the class Co(L) of lattices isomorphic to convexity lattices of linearly ordered posets. This characterization yields that the class of finite members from Co(F ) [from Co(F n ), n < ω, or from Co(L)] is finitely axiomatizable within the class of finite lattices.