added functionality to open post in wordpress edit mode