Post positioning moved to a function
(no changes in positioning itself)