added get post by id if activePost returns false