php files confusion
-
Hey all, I was wondering, I think I’m using too many PHP files than necessary, and I’m getting more and more confused what which file is exactly doing. Just created my first theme. The site is meant to let people find bars (by category also) I have:
Custom post type: Bars
Taxonomy: Type
Terms: Music/Dance/Lounge/Irish Pub etcThere are several ways the bars can show up:
mydomain.com/bars (so they have a list of ALL the bars)
mydomain.com/type/TERM (so they see all the bars from 1 specific term)
Or by searchingI have the layout/structure of this post type the same for all those 3 ways. Now I’m using:
archive-bars.php
content-bars.php
taxonomy.php
search.phpI’m not using a single.php because I disabled clickable titles, so they won’t even see single posts. There are more files of course, but for the views I mentioned before those files are used. I have the feeling I’m using too many for this purpose, or is this normal?
Ever since someone told me to “DON’T USE TOO MANY PHP FILES!” I’m always concerned I am ??
Thanks!
- The topic ‘php files confusion’ is closed to new replies.