Combine categorical variables into factors to form clusters

categorical
k-meansclustering
factor_analysis

#1

As I have around 72 different categorical values which are Nominal or Ordinal in nature. I need to combine them into factors to form clusters. But I studied that factors can be formed only on continuous variables.My understanding needs correction. can anyone help me out ?