custom poty type redirect posty type function