adding position and site to  the post thumbnail function