Theme file name convention rule to be accepted

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.

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

1 Like

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