Webwide is the inclusive forum community for web designers, developers & makers.

Whether you're an enthusiast, in training, or a seasoned pro – you'll fit right in at Webwide. We understand that our community is one of creation which is why we, unlike many other discussion forums, encourage sharing of your own projects and content. Creating a forum account is fast, easy and completely free so you can start participating right away.

Read our Code of Conduct

Free Forum Membership Benefits

  • Participate in hundreds of interesting discussions
  • Network with industry peers and make new connections
  • Show off your own projects and relevant content
  • Get help and feedback for your coding and designs
  • Buy and sell services and resources in the marketplace
  • Participate in our friendly community challenges
  • Earn trophies and work your way up our leaderboards
  • Enjoy exclusive Webwide member discounts and offers
  • ...and so much more!

WordPress Where is the category page template in WordPress core?

Talia

Member
Joined
Jan 21, 2020
Messages
41
Reaction score
39
Points
20
Location
United States
Local Time
Today, 06:03
OK, I'm honestly pretty confused. I'm working on a WordPress site and I just want to change the category template in a couple of simple ways - I want to make it so it shows the full posts instead of excerpts and I want to remove the "Category:" in front of the category name. This isn't something I've ever done before, and it looks like the theme I'm working off of (which is Understrap, specifically Understrap Child) doesn't have a category template. So I went to the WordPress core to find its category.php template, and I'm totally confused! The category.php file doesn't look at all like what I was expecting. It doesn't look like a template, it looks like a list of functions. According to official WordPress sources I've been reading (such as this), changing it to show full posts instead of excerpts should be as simple as replacing "the_excerpt()" with "the_content()", but the category.php file does not contain "the_excerpt()" or "the_content()" anywhere. I thought maybe category-template.php would be what I was looking for, but it doesn't look like it. And for the record, I can't find an archive.php either.

I'm just so confused as to what template is currently being used for the category pages because I can't find a file. Plus, I'm not sure what to work off of to create my new category template.
 

Talia

Member
Joined
Jan 21, 2020
Messages
41
Reaction score
39
Points
20
Location
United States
Local Time
Today, 06:03
After posting this, I realized Understrap does have an archive.php template, so that must be what it's based on. So now I'm wondering if WordPress core doesn't have an archive or category template and it has to be supplied by the theme??
 

Pandemix

MD developer
Gold Member
Joined
Feb 13, 2020
Messages
23
Reaction score
38
Points
65
Location
Austin, TX
Local Time
Today, 06:03
Website
marketersdelight.com
WordPress always falls back to index.php if the parent theme and child theme don't create those specific page templates. So you create your own category.php file in your child theme and for starters copy whatever is in the parent theme's index.php file so you can tweak it entirely.
 
  • Like
Reactions: Talia and Adam

Talia

Member
Joined
Jan 21, 2020
Messages
41
Reaction score
39
Points
20
Location
United States
Local Time
Today, 06:03
Yeah, I guess maybe I shouldn't have assumed core must have a category or archive template... thanks for the responses :)
 

JamePUB

New member
Joined
Mar 1, 2020
Messages
1
Reaction score
0
Points
1
WordPress became overwhelming, for simple websites I prefer wix instead
 

Pandemix

MD developer
Gold Member
Joined
Feb 13, 2020
Messages
23
Reaction score
38
Points
65
Location
Austin, TX
Local Time
Today, 06:03
Website
marketersdelight.com
Yeah, I guess maybe I shouldn't have assumed core must have a category or archive template... thanks for the responses :)
It's not a bad assumption to make and when you realize that one file can power an entire site you start to see the old WordPress core philosophy of "Decisions, Not Options" really come into play.

It's debatable whether that is still a guiding principle with the heavy JS development that's been going on in core lately,though.

WordPress became overwhelming, for simple websites I prefer wix instead
In what ways have you also noticed WordPress become overwhelming?
 
Top