- This topic has 21 replies, 2 voices, and was last updated 2 years, 8 months ago by Pete.
August 25, 2015 at 7:40 am #131941August 25, 2015 at 9:04 am #131962TomLead DeveloperLead Developer
Do you mean the category link within the post?
Interesting point – it wouldn’t do anything to the SEO of the page, but might be something to look into regardless.August 25, 2015 at 9:07 am #131967Pete
Yep, i’d love to see a dedicated archive.php (and includes) so it’s easier to edit the archive page without also editing other templates.August 25, 2015 at 9:09 am #131970TomLead DeveloperLead Developer
There is an archive.php file – do you mean a category.php file?
Either way, you can create one in your child theme and make edits to it freely 🙂August 25, 2015 at 9:13 am #131980Pete
I’d like to see a content type just for the cats…
get_template_part( 'content-category', get_post_format() );August 25, 2015 at 9:21 am #131987Pete
I suppose I could just make my own 🙂 I’m a bit old fashoned when it comes to templates, I really like not having any includes and having/being able to edit author.php, category.php with all their own codes (no common includes), etc 🙂August 25, 2015 at 9:25 am #131988Pete
I’d like to see at least all of these without them having any common includes so they’re all self contained as such …
index.phpAugust 25, 2015 at 9:36 am #131995TomLead DeveloperLead Developer
That would add a lot of complexity to GP though. Currently, GP is super lightweight and simple, meaning not a whole lot can go wrong.
If each post type/taxonomy had its own template, there’s a lot more room for error.
The way it’s set up now, one template serves them all. This makes the theme lighter, but still allows the end-user to add their own templates to further customize.August 25, 2015 at 9:40 am #131997Pete
Not each taxonomy, just one taxonomy.php but all self contained without any includes. the whole if/then conditional is confusing for me as it requires more detective work to find the file and then the whole if/then thing melts my brain. If i had taxonomy.php, tag.php and category.php that would make MY life easier to reverse engineer.
As it is now archive.php holds all these templates with a complex if/then structure.August 25, 2015 at 9:45 am #132006Pete
The old original studiopress themes had these files and it was much easier to just look at one file and see where everything was in the one file, nowadays themes contain a multitude of includes that we have to follow the trail to find each file that impacts on the parent file… am i making sense? 🙂August 25, 2015 at 9:47 am #132007Pete
I agree it would be (a little) more work for you but essentially the files would be 99% the same except for a few specific template tags.August 25, 2015 at 9:49 am #132008Pete
In other words each template file has it’s own self contained loop without any common includesAugust 25, 2015 at 11:35 pm #132160TomLead DeveloperLead DeveloperAugust 26, 2015 at 12:19 am #132168Pete
Awesome, thanks. Maybe a child theme with all of the template files, would that work???August 26, 2015 at 2:11 am #132173Pete
RE my original point and your “Do you mean the category link within the post?” Sorry no, I mean the cat link on the archive.php page
- You must be logged in to reply to this topic.