Home Tutorials How to manipulate category templates

How to manipulate category templates

Author

Date

Updated on

Category

One of my favorite WordPress template features is the ability to customize category templates to cater specific categories of your choice.

Here’s my default category template. It simply displays excerpts:

category-default

Here’s my customize category template for category ID #2. This one is actually a theme gallery template:

category-custom

So, how do you manipulate category templates? Simple, duplicate your default
category.php template (or archive.php in some cases), add a hyphen and a number to the name of the new file. For example: category-2.php. Then, start customizing the template for the new file.

The number attached to the file name should be the ID of the category that you want to target.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Recent posts

LawBlog WP Theme Review

Regardless of which area of law you practice, it’s imperative that you have proper online representation. You need to give your customers a feeling...

The Deeper Meaning and Purpose Behind Shapes in Web & Graphic Design

Sometimes in web design, a clean website is often the best choice for certain clients. Instead of elaborate backgrounds or too many aesthetic choices,...

How to Easily Design a Website Without Coding

Are you looking to build a website and you don’t know how to code? Online web design services are helpful to create website templates...

The importance of SSL Certificates as part of a web hosting package

Building a successful business requires trust, and gaining trust can be difficult especially when you run a business where it is taken for granted...

How Can Domain Name Extensions Influence Your Brand Name?

Are domain name extensions important in naming your brand? The shortest answer is "Yes." In today's online world, it is the first thing that...

Recent comments