move endif so that post meta will appar