Theme file name convention rule to be accepted

wordpress

#1

I need to use function get_template_part() to call some partial template files and they are conjunction of 4 or 5 words, so I have to decide whether I will join the multiple words without any separator but dashes(-) or I will use underscores as the separator.

i.e) postcat-masonrygrid2col :taxi: vs post_cat-masonry_grid_2_col

Which way should I use for naming my template files? I prefer the former way to the latter if it’s okay to pass a theme review.


#2

I think 2nd way is good for naming. if you use 1st than people may face problem to identify file name. I prefer 2nd.


#3

Okay, thank you! I will fix the names of my files. :smile: