fetch posts templates from the server