getUniqueName method for PostType class