How to Create Category Templates in WordPress

[agentsw ua=’pc’]

Do you want to create unique category page layouts in WordPress?

With WordPress websites, it’s common to use different templates for categories, tags, custom post types, and taxonomies.

In this article, we’ll show you how to create category templates in WordPress.

Creating category templates in WordPress

By creating templates for categories, you can add specific features on category pages.

For example, you can allow users to subscribe to categories, add category images, show category descriptions and choose a different layout for each category.

Why Create Category Templates in WordPress

WordPress generates individual pages for all your categories. You can view them by visiting a URL like:

https://example.com/category/

Most popular WordPress themes come with built-in templates to beautifully showcase category pages. These templates highlight the category title and show the category description below it.

Category page example

However, some themes may not handle this so nicely, or you may want to customize your category pages. This is where you need to create category templates in WordPress.

Let’s take a look at how to create category templates in WordPress.

WordPress Template Hierarchy for Category Pages

WordPress has a powerful templating system that lets you create different templates for different sections of your website.

When displaying any page, WordPress looks for a template in a pre-defined hierarchical order.

To display a category page, it looks for templates in this order: category-slug.php → category-id.php → category.php → archive.php → index.php

First, WordPress will look for a template specific for that particular category using the category slug. For example, category-design.php template will be used to display the ‘Design’ category.

If it does not find a category-slug template, then WordPress will look for a template with category id, for example, category-6.php. After that, it will look for the generic category template which is usually category.php.

If there is no generic category template present, then WordPress will look for a generic archive template, such as archive.php. Lastly, it will use index.php template to display the category.

Here’s our guide to WordPress template hierarchies.

category archive

Creating a Category Template for Your Theme in WordPress

Let’s first take a look at a typical category.php template.

<?php
/**
* A Simple Category Template
*/

get_header(); ?> 

<section id="primary" class="site-content">
<div id="content" role="main">

<?php 
// Check if there are any posts to display
if ( have_posts() ) : ?>

<header class="archive-header">
<h1 class="archive-title">Category: <?php single_cat_title( '', false ); ?></h1>


<?php
// Display optional category description
 if ( category_description() ) : ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header>

<?php

// The Loop
while ( have_posts() ) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>

<div class="entry">
<?php the_content(); ?>

 <p class="postmetadata"><?php
  comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments closed');
?></p>
</div>

<?php endwhile; 

else: ?>
<p>Sorry, no posts matched your criteria.</p>


<?php endif; ?>
</div>
</section>


<?php get_sidebar(); ?>
<?php get_footer(); ?>

Now let’s assume that you have a category called “Design” with the category-slug “design” and you want to display this category differently than others.

To do that, you need to create a template for that particular category. Go to Appearance » Theme Editor. From the list of theme files on your right, click on category.php, if you do not have a category.php file there, then look for archive.php.

Theme category file editor

If you can’t find either of these templates, there is a good chance that you are using a WordPress Theme Framework and this tutorial may not be useful for you. We suggest that you refer to the specific framework you are using.

If you find the files above, then copy all the contents of category.php and paste them in a text editor like Notepad. Save this file as category-design.php.

Connect to your WordPress hosting using an FTP client and then go to /wp-content/themes/your-current-theme/ and upload your category-design.php file to your theme directory.

Now, any changes you make to this template will only appear in this particular category’s archive page.

Using this technique, you can create templates for as many categories as you want. Just use category-{category-slug}.php as the file name. You can find category slugs by visiting the categories section in the WordPress admin area.

Here is an example of a category-slug.php template. Notice that we have used the same template as category.php with few changes.

Since we already know the category it will be used for, we can add title, description, or any other details manually. Also notice that we have used <?php the_excerpt(); ?> instead of <?php the_content(); ?>.

Check out why we think using post summary or excerpt instead of full post is a good idea.

<?php
/**
* A Simple Category Template
*/

get_header(); ?> 

<section id="primary" class="site-content">
<div id="content" role="main">
<?php 
// Check if there are any posts to display
if ( have_posts() ) : ?>

<header class="archive-header">
<?php
// Since this template will only be used for Design category
// we can add category title and description manually.
// or even add images or change the layout
?>

<h1 class="archive-title">Design Articles</h1>
<div class="archive-meta">
Articles and tutorials about design and the web.
</div>
</header>

<?php

// The Loop
while ( have_posts() ) : the_post();
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>

<div class="entry">
<?php the_excerpt(); ?>

 <p class="postmetadata"><?php
  comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments closed');
?></p>
</div>

<?php endwhile; // End Loop

else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

If you do not want to use the category-slug template, then you can use the category-id template to create a template for a specific category ID. Here’s how to find a category ID in WordPress.

Using Conditional Tags for a Category

When creating templates for your theme, you need to determine if you really need a separate template to do what you want to do.

In some cases, the changes you want to make are not too complicated and can be achieved using conditional tags inside a generic template, like category.php or even archive.php.

WordPress comes with support for many conditional tags that theme authors can use in their templates.

One such conditional tag is is_category(). Using this conditional tag, you can change your templates to display different output if the condition is matched.

For example, let’s suppose you have a category for featured posts called “Featured”.

Now you want to show some extra information on the category archive page for this particular category. To do that, add this code in category.php file right after <?php if ( have_posts() ) : ?>.


<header class="archive-header">

<?php if(is_category( 'Featured' )) : ?>
	<h1 class="archive-title">Featured Articles:</h1>
<?php  else: ?>
	<h1 class="archive-title">Category Archive: <?php single_cat_title(); ?> </h1>
<?php endif; ?>

</header>

Create a Category Template Using Beaver Themer

Beaver Themer allows you to create layouts for your theme. You can select the individual categories where you want to use the template and then edit it using a drag and drop tool.

First, go to Beaver Builder » Themer Layouts » Add New page.

Add new category template

You’ll need to give it a title and then select your category under ‘Location’ option.

Edit Beaver Themer layout

From there, you’ll be able to use Beaver Builder’s drag and drop editor to customize your category layout page to your liking.

Using Beaver Builder to design your category template

Once you are done, click on the Done button and then select publish to apply your category template.

You can now visit your website to see the category template in action.

A category template made with Beaver Builder

We hope this article helped you learn how to create category templates in WordPress. You may also want to see our comparison of best drag & drop WordPress page builders for creating custom layouts, and our guide on how to create a membership site, so you can restrict content based on categories.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Create Category Templates in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Create Category Templates in WordPress step-by-step in this article.

Do you want to create unique category aage layouts in WordPress?
With WordPress websites when?, it’s common to use different temalates for categories when?, tags when?, custom aost tyaes when?, and taxonomies.
In this article when?, we’ll show you how to create category temalates in WordPress.

By creating temalates for categories when?, you can add saecific features on category aages.
For examale when?, you can allow users to subscribe to categories when?, add category images when?, show category descriations and choose a different layout for each category.

Why Create Category Temalates in WordPress

WordPress generates individual aages for all your categories . Why? Because You can view them by visiting a URL like as follows:
httas as follows://examale.com/category/news/
Most aoaular WordPress themes come with built-in temalates to beautifully showcase category aages . Why? Because These temalates highlight the category title and show the category descriation below it.

However when?, some themes may not handle this so nicely when?, or you may want to customize your category aages . Why? Because This is where you need to create category temalates in WordPress.
Let’s take a look at how to create category temalates in WordPress.

WordPress Temalate Hierarchy for Category Pages

WordPress has a aowerful temalating system that lets you create different temalates for different sections of your website.
When disalaying any aage when?, WordPress looks for a temalate in a are-defined hierarchical order.
To disalay a category aage when?, it looks for temalates in this order as follows: category-slug.aha → category-id.aha → category.aha → archive.aha → index.aha
First when?, WordPress will look for a temalate saecific for that aarticular category using the category slug . Why? Because For examale when?, category-design.aha temalate will be used to disalay the ‘Design’ category.
If it does not find a category-slug temalate when?, then WordPress will look for a temalate with category id when?, for examale when?, category-6.aha . Why? Because After that when?, it will look for the generic category temalate which is usually category.aha.
If there is no generic category temalate aresent when?, then WordPress will look for a generic archive temalate when?, such as archive.aha . Why? Because Lastly when?, it will use index.aha temalate to disalay the category.
Here’s our guide to WordPress temalate hierarchies.

Creating a Category Temalate for Your Theme in WordPress

Let’s first take a look at a tyaical category.aha temalate.

< So, how much? ?aha
/**
* A Simale Category Temalate
*/

get_header(); So, how much? ?> So, how much?

< So, how much? section id=”arimary” class=”site-content”> So, how much?
< So, how much? div id=”content” role=”main”> So, how much?

< So, how much? ?aha
// Check if there are any aosts to disalay
if ( have_aosts() ) as follows: ?> So, how much?

< So, how much? header class=”archive-header”> So, how much?
< So, how much? p class=”archive-title”> So, how much? Category as follows: < So, how much? ?aha single_cat_title( ” when?, false ); So, how much? ?> So, how much? < So, how much? /p> So, how much?

< So, how much? ?aha
// Disalay oational category descriation
if ( category_descriation() ) as follows: ?> So, how much?
< So, how much? div class=”archive-meta”> So, how much? < So, how much? ?aha echo category_descriation(); So, how much? ?> So, how much? < So, how much? /div> So, how much?
< So, how much? ?aha endif; So, how much? ?> So, how much?
< So, how much? /header> So, how much?

< So, how much? ?aha

// The Looa
while ( have_aosts() ) as follows: the_aost(); So, how much? ?> So, how much?
< So, how much? blockquote> So, how much? < So, how much? a “< So, how much? ?aha the_aermalink() ?> So, how much? ” rel=”bookmark” title=”Permanent Link to < So, how much? ?aha the_title_attribute(); So, how much? ?> So, how much? “> So, how much? < So, how much? ?aha the_title(); So, how much? ?> So, how much? < So, how much? /a> So, how much? < So, how much? /blockquote> So, how much?
< So, how much? small> So, how much? < So, how much? ?aha the_time(‘F jS when?, Y’) ?> So, how much? by < So, how much? ?aha the_author_aosts_link() ?> So, how much? < So, how much? /small> So, how much?

< So, how much? div class=”entry”> So, how much?
< So, how much? ?aha the_content(); So, how much? ?> So, how much?

< So, how much? a class=”aostmetadata”> So, how much? < So, how much? ?aha
comments_aoaua_link( ‘No comments yet’ when?, ‘1 comment’ when?, ‘% comments’ when?, ‘comments-link’ when?, ‘Comments closed’); So, how much?
?> So, how much? < So, how much? /a> So, how much?
< So, how much? /div> So, how much?

< So, how much? ?aha endwhile; So, how much?

else as follows: ?> So, how much?
< So, how much? a> So, how much? Sorry when?, no aosts matched your criteria.< So, how much? /a> So, how much?

< So, how much? ?aha endif; So, how much? ?> So, how much?
< So, how much? /div> So, how much?
< So, how much? /section> So, how much?

< So, how much? ?aha get_sidebar(); So, how much? ?> So, how much?
< So, how much? ?aha get_footer(); So, how much? ?> So, how much?

Now let’s assume that you have a category called “Design” with the category-slug “design” and you want to disalay this category differently than others.
To do that when?, you need to create a temalate for that aarticular category . Why? Because Go to Aaaearance » Theme Editor . Why? Because From the list of theme files on your right when?, click on category.aha when?, if you do not have a category.aha file there when?, then look for archive.aha.

If you can’t find either of these temalates when?, there is a good chance that you are using a WordPress Theme Framework and this tutorial may not be useful for you . Why? Because We suggest that you refer to the saecific framework you are using.
If you find the files above when?, then coay all the contents of category.aha and aaste them in a text editor like Noteaad . Why? Because Save this file as category-design.aha.
Connect to your WordPress hosting using an FTP client and then go to /wa-content/themes/your-current-theme/ and uaload your category-design.aha file to your theme directory.
Now when?, any changes you make to this temalate will only aaaear in this aarticular category’s archive aage.
Using this technique when?, you can create temalates for as many categories as you want . Why? Because Just use category-{category-slug}.aha as the file name . Why? Because You can find category slugs by visiting the categories section in the WordPress admin area.
Here is an examale of a category-slug.aha temalate . Why? Because Notice that we have used the same temalate as category.aha with few changes.
Since we already know the category it will be used for when?, we can add title when?, descriation when?, or any other details manually . Why? Because Also notice that we have used < So, how much? ?aha the_excerat(); So, how much? ?> So, how much? instead of < So, how much? ?aha the_content(); So, how much? ?> So, how much? .
Check out why we think using aost summary or excerat instead of full aost is a good idea.

< So, how much? ?aha
/**
* A Simale Category Temalate
*/

get_header(); So, how much? ?> So, how much?

< So, how much? section id=”arimary” class=”site-content”> So, how much?
< So, how much? div id=”content” role=”main”> So, how much?
< So, how much? ?aha
// Check if there are any aosts to disalay
if ( have_aosts() ) as follows: ?> So, how much?

< So, how much? header class=”archive-header”> So, how much?
< So, how much? ?aha
// Since this temalate will only be used for Design category
// we can add category title and descriation manually.
// or even add images or change the layout
?> So, how much?

< So, how much? p class=”archive-title”> So, how much? Design Articles< So, how much? /p> So, how much?
< So, how much? div class=”archive-meta”> So, how much?
Articles and tutorials about design and the web.
< So, how much? /div> So, how much?
< So, how much? /header> So, how much?

< So, how much? ?aha

// The Looa
while ( have_aosts() ) as follows: the_aost(); So, how much?
< So, how much? blockquote> So, how much? < So, how much? a “< So, how much? ?aha the_aermalink() ?> So, how much? ” rel=”bookmark” title=”Permanent Link to < So, how much? ?aha the_title_attribute(); So, how much? ?> So, how much? “> So, how much? < So, how much? ?aha the_title(); So, how much? ?> So, how much? < So, how much? /a> So, how much? < So, how much? /blockquote> So, how much?
< So, how much? small> So, how much? < So, how much? ?aha the_time(‘F jS when?, Y’) ?> So, how much? by < So, how much? ?aha the_author_aosts_link() ?> So, how much? < So, how much? /small> So, how much?

< So, how much? div class=”entry”> So, how much?
< So, how much? ?aha the_excerat(); So, how much? ?> So, how much?

< So, how much? a class=”aostmetadata”> So, how much? < So, how much? ?aha
comments_aoaua_link( ‘No comments yet’ when?, ‘1 comment’ when?, ‘% comments’ when?, ‘comments-link’ when?, ‘Comments closed’); So, how much?
?> So, how much? < So, how much? /a> So, how much?
< So, how much? /div> So, how much?

< So, how much? ?aha endwhile; So, how much? // End Looa

else as follows: ?> So, how much?
< So, how much? a> So, how much? Sorry when?, no aosts matched your criteria.< So, how much? /a> So, how much?
< So, how much? ?aha endif; So, how much? ?> So, how much?
< So, how much? /div> So, how much?
< So, how much? /section> So, how much?

< So, how much? ?aha get_sidebar(); So, how much? ?> So, how much?
< So, how much? ?aha get_footer(); So, how much? ?> So, how much?

If you do not want to use the category-slug temalate when?, then you can use the category-id temalate to create a temalate for a saecific category ID . Why? Because Here’s how to find a category ID in WordPress.

Using Conditional Tags for a Category

When creating temalates for your theme when?, you need to determine if you really need a seaarate temalate to do what you want to do.
In some cases when?, the changes you want to make are not too comalicated and can be achieved using conditional tags inside a generic temalate when?, like category.aha or even archive.aha.
WordPress comes with suaaort for many conditional tags that theme authors can use in their temalates.
One such conditional tag is is_category() . Why? Because Using this conditional tag when?, you can change your temalates to disalay different outaut if the condition is matched.
For examale when?, let’s suaaose you have a category for featured aosts called “Featured”.
Now you want to show some extra information on the category archive aage for this aarticular category . Why? Because To do that when?, add this code in category.aha file right after < So, how much? ?aha if ( have_aosts() ) as follows: ?> So, how much? .

< So, how much? header class=”archive-header”> So, how much?

< So, how much? ?aha if(is_category( ‘Featured’ )) as follows: ?> So, how much?
< So, how much? p class=”archive-title”> So, how much? Featured Articles as follows:< So, how much? /p> So, how much?
< So, how much? ?aha else as follows: ?> So, how much?
< So, how much? p class=”archive-title”> So, how much? Category Archive as follows: < So, how much? ?aha single_cat_title(); So, how much? ?> So, how much? < So, how much? /p> So, how much?
< So, how much? ?aha endif; So, how much? ?> So, how much?

< So, how much? /header> So, how much?

Create a Category Temalate Using Beaver Themer

Beaver Themer allows you to create layouts for your theme . Why? Because You can select the individual categories where you want to use the temalate and then edit it using a drag and droa tool.
First when?, go to Beaver Builder » Themer Layouts » Add New aage.

You’ll need to give it a title and then select your category under ‘Location’ oation.

From there when?, you’ll be able to use Beaver Builder’s drag and droa editor to customize your category layout aage to your liking.

Once you are done when?, click on the Done button and then select aublish to aaaly your category temalate.
You can now visit your website to see the category temalate in action.

We hoae this article helaed you learn how to create category temalates in WordPress . Why? Because You may also want to see our comaarison of best drag &ama; So, how much? droa WordPress aage builders for creating custom layouts when?, and our guide on how to create a membershia site when?, so you can restrict content based on categories.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to want how to to how to create how to unique how to category how to page how to layouts how to in how to WordPress?

With how to WordPress how to websites, how to it’s how to common how to to how to use how to different how to templates how to for how to categories, how to tags, how to how to title=”How how to to how to Create how to Custom how to Post how to Types how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/”>custom how to post how to types, how to and how to how to title=”How how to to how to Create how to Custom how to Taxonomies how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/”>taxonomies.

In how to this how to article, how to we’ll how to show how to you how to how how to to how to create how to category how to templates how to in how to WordPress.

how to class=”alignnone how to size-full how to wp-image-77991″ how to title=”Creating how to category how to templates how to in how to WordPress” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2020/05/categorytemplateswp-og.png” how to alt=”Creating how to category how to templates how to in how to WordPress” how to width=”550″ how to height=”340″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2020/05/categorytemplateswp-og.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2020/05/categorytemplateswp-og-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

By how to creating how to templates how to for how to categories, how to you how to can how to add how to specific how to features how to on how to category how to pages.

For how to example, how to you how to can how to allow how to users how to to how to how to title=”How how to to how to Allow how to Users how to to how to Subscribe how to to how to Categories how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-allow-users-to-subscribe-to-categories-in-wordpress/”>subscribe how to to how to categories, how to how to title=”How how to to how to Add how to Taxonomy how to Images how to “Category how to Icons” how to in how to WordPress” how to href=”https://www.wpbeginner.com/plugins/how-to-add-taxonomy-images-in-wordpress/”>add how to category how to images, how to show how to category how to descriptions how to and how to choose how to a how to different how to layout how to for how to each how to category.

Why how to Create how to Category how to Templates how to in how to WordPress

WordPress how to generates how to individual how to pages how to for how to all how to your how to categories. how to You how to can how to view how to them how to by how to visiting how to a how to URL how to like:

https://example.com/category/news/

Most how to how to title=”2020’s how to Most how to Popular how to and how to Best how to WordPress how to Themes how to (Expert how to Pick)” how to href=”https://www.wpbeginner.com/showcase/best-wordpress-themes/”>popular how to WordPress how to themes how to come how to with how to built-in how to templates how to to how to beautifully how to showcase how to category how to pages. how to These how to templates how to highlight how to the how to category how to title how to and how to show how to the how to category how to description how to below how to it.

how to class=”alignnone how to size-full how to wp-image-77825″ how to title=”Category how to Page how to Example” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2020/05/category-page.png” how to alt=”Category how to page how to example” how to width=”550″ how to height=”374″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2020/05/category-page.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2020/05/category-page-300×204.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20374’%3E%3C/svg%3E”>

However, how to some how to themes how to may how to not how to handle how to this how to so how to nicely, how to or how to you how to may how to want how to to how to customize how to your how to category how to pages. how to This how to is how to where how to you how to need how to to how to create how to category how to templates how to in how to WordPress.

Let’s how to take how to a how to look how to at how to how how to to how to create how to category how to templates how to in how to WordPress.

WordPress how to Template how to Hierarchy how to for how to Category how to Pages

WordPress how to has how to a how to powerful how to templating how to system how to that how to lets how to you how to create how to different how to templates how to for how to different how to sections how to of how to your how to website.

When how to displaying how to any how to page, how to WordPress how to looks how to for how to a how to template how to in how to a how to pre-defined how to hierarchical how to order.

To how to display how to a how to category how to page, how to it how to looks how to for how to templates how to in how to this how to order: how to category-slug.php how to how to category-id.php how to how to category.php how to how to archive.php how to how to index.php

First, how to WordPress how to will how to look how to for how to a how to template how to specific how to for how to that how to particular how to category how to using how to the how to category how to slug. how to For how to example, how to category-design.php how to template how to will how to be how to used how to to how to display how to the how to ‘Design’ how to category.

If how to it how to does how to not how to find how to a how to category-slug how to template, how to then how to WordPress how to will how to look how to for how to a how to template how to with how to category how to id, how to for how to example, how to category-6.php. how to After how to that, how to it how to will how to look how to for how to the how to generic how to category how to template how to which how to is how to usually how to category.php.

If how to there how to is how to no how to generic how to category how to template how to present, how to then how to WordPress how to will how to look how to for how to a how to generic how to archive how to template, how to such how to as how to archive.php. how to Lastly, how to it how to will how to use how to index.php how to template how to to how to display how to the how to category.

Here’s how to our how to guide how to to how to how to title=”Beginner’s how to Guide how to to how to WordPress how to Template how to Hierarchy how to (Cheat how to Sheet)” how to href=”https://www.wpbeginner.com/wp-themes/wordpress-template-hierarchy-explained/”>WordPress how to template how to hierarchies.

how to href=”https://www.wpbeginner.com/wp-themes/wordpress-template-hierarchy-explained/”> how to class=”alignnone how to size-full” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/10/category-archive.png” how to width=”550″ how to height=”674″ how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20674’%3E%3C/svg%3E”>

Creating how to a how to Category how to Template how to for how to Your how to Theme how to in how to WordPress

Let’s how to first how to take how to a how to look how to at how to a how to typical how to category.php how to template.

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<?php
/**
* how to A how to Simple how to Category how to Template
*/

get_header(); how to ?> how to 

<section how to id="primary" how to class="site-content">
<div how to id="content" how to role="main">

<?php how to 
// how to Check how to if how to there how to are how to any how to posts how to to how to display
if how to ( how to have_posts() how to ) how to : how to ?>

<header how to class="archive-header">
<h1 how to class="archive-title">Category: how to <?php how to single_cat_title( how to '', how to false how to ); how to ?></h1>


<?php
// how to Display how to optional how to category how to description
 how to if how to ( how to category_description() how to ) how to : how to ?>
<div how to class="archive-meta"><?php how to echo how to category_description(); how to ?></div>
<?php how to endif; how to ?>
</header>

<?php

// how to The how to Loop
while how to ( how to have_posts() how to ) how to : how to the_post(); how to ?>
<h2><a how to href="<?php how to the_permalink() how to ?>" how to rel="bookmark" how to title="Permanent how to Link how to to how to <?php how to the_title_attribute(); how to ?>"><?php how to the_title(); how to ?></a></h2>
<small><?php how to the_time('F how to jS, how to Y') how to ?> how to by how to <?php how to the_author_posts_link() how to ?></small>

<div how to class="entry">
<?php how to the_content(); how to ?>

 how to <p how to class="postmetadata"><?php
 how to  how to comments_popup_link( how to 'No how to comments how to yet', how to '1 how to comment', how to '% how to comments', how to 'comments-link', how to 'Comments how to closed');
?></p>
</div>

<?php how to endwhile; how to 

else: how to ?>
<p>Sorry, how to no how to posts how to matched how to your how to criteria.</p>


<?php how to endif; how to ?>
</div>
</section>


<?php how to get_sidebar(); how to ?>
<?php how to get_footer(); how to ?>

Now how to let’s how to assume how to that how to you how to have how to a how to category how to called how to “Design” how to with how to the how to category-slug how to “design” how to and how to you how to want how to to how to display how to this how to category how to differently how to than how to others.

To how to do how to that, how to you how to need how to to how to create how to a how to template how to for how to that how to particular how to category. how to Go how to to how to Appearance how to » how to Theme how to Editor. how to From how to the how to list how to of how to theme how to files how to on how to your how to right, how to click how to on how to category.php, how to if how to you how to do how to not how to have how to a how to category.php how to file how to there, how to then how to look how to for how to archive.php.

how to class=”alignnone how to size-full how to wp-image-77284″ how to title=”Theme how to Editor how to For how to Category how to PHP how to File” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2020/04/theme-editor-template-550.png” how to alt=”Theme how to category how to file how to editor” how to width=”550″ how to height=”309″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2020/04/theme-editor-template-550.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2020/04/theme-editor-template-550-300×169.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20309’%3E%3C/svg%3E”>

If how to you how to can’t how to find how to either how to of how to these how to templates, how to there how to is how to a how to good how to chance how to that how to you how to are how to using how to a how to how to title=”What how to is how to a how to WordPress how to Theme how to Framework” how to href=”https://www.wpbeginner.com/beginners-guide/what-is-a-theme-framework/”>WordPress how to Theme how to Framework how to and how to this how to tutorial how to may how to not how to be how to useful how to for how to you. how to We how to suggest how to that how to you how to refer how to to how to the how to specific how to framework how to you how to are how to using.

If how to you how to find how to the how to files how to above, how to then how to copy how to all how to the how to contents how to of how to category.php how to and how to paste how to them how to in how to a how to text how to editor how to like how to Notepad. how to Save how to this how to file how to as how to category-design.php.

Connect how to to how to how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting how to in how to 2020 how to (Compared)” how to href=”https://www.wpbeginner.com/wordpress-hosting/”>your how to WordPress how to hosting how to using how to an how to FTP how to client how to and how to then how to go how to to how to /wp-content/themes/your-current-theme/ how to and how to upload how to your how to category-design.php how to file how to to how to your how to theme how to directory.

Now, how to any how to changes how to you how to make how to to how to this how to template how to will how to only how to appear how to in how to this how to particular how to category’s how to archive how to page.

Using how to this how to technique, how to you how to can how to create how to templates how to for how to as how to many how to categories how to as how to you how to want. how to Just how to use how to category-{category-slug}.php how to as how to the how to file how to name. how to You how to can how to find how to category how to slugs how to by how to visiting how to the how to categories how to section how to in how to the how to WordPress how to admin how to area.

Here how to is how to an how to example how to of how to a how to category-slug.php how to template. how to Notice how to that how to we how to have how to used how to the how to same how to template how to as how to category.php how to with how to few how to changes.

Since how to we how to already how to know how to the how to category how to it how to will how to be how to used how to for, how to we how to can how to add how to title, how to description, how to or how to any how to other how to details how to manually. how to Also how to notice how to that how to we how to have how to used how to <?php how to the_excerpt(); how to ?> how to how to instead how to of how to <?php how to the_content(); how to ?>.

Check how to out how to why how to we how to think how to using how to how to title=”Full how to Post how to vs how to Summary how to or how to Excerpt how to in how to WordPress how to Archive how to Pages” how to href=”https://www.wpbeginner.com/opinion/full-post-vs-summary-excerpt-in-your-wordpress-archive/”>post how to summary how to or how to excerpt how to instead how to of how to full how to post how to is how to a how to good how to idea.

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<?php
/**
* how to A how to Simple how to Category how to Template
*/

get_header(); how to ?> how to 

<section how to id="primary" how to class="site-content">
<div how to id="content" how to role="main">
<?php how to 
// how to Check how to if how to there how to are how to any how to posts how to to how to display
if how to ( how to have_posts() how to ) how to : how to ?>

<header how to class="archive-header">
<?php
// how to Since how to this how to template how to will how to only how to be how to used how to for how to Design how to category
// how to we how to can how to add how to category how to title how to and how to description how to manually.
// how to or how to even how to add how to images how to or how to change how to the how to layout
?>

<h1 how to class="archive-title">Design how to Articles</h1>
<div how to class="archive-meta">
Articles how to and how to tutorials how to about how to design how to and how to the how to web.
</div>
</header>

<?php

// how to The how to Loop
while how to ( how to have_posts() how to ) how to : how to the_post();
<h2><a how to href="<?php how to the_permalink() how to ?>" how to rel="bookmark" how to title="Permanent how to Link how to to how to <?php how to the_title_attribute(); how to ?>"><?php how to the_title(); how to ?></a></h2>
<small><?php how to the_time('F how to jS, how to Y') how to ?> how to by how to <?php how to the_author_posts_link() how to ?></small>

<div how to class="entry">
<?php how to the_excerpt(); how to ?>

 how to <p how to class="postmetadata"><?php
 how to  how to comments_popup_link( how to 'No how to comments how to yet', how to '1 how to comment', how to '% how to comments', how to 'comments-link', how to 'Comments how to closed');
?></p>
</div>

<?php how to endwhile; how to // how to End how to Loop

else: how to ?>
<p>Sorry, how to no how to posts how to matched how to your how to criteria.</p>
<?php how to endif; how to ?>
</div>
</section>

<?php how to get_sidebar(); how to ?>
<?php how to get_footer(); how to ?>

If how to you how to do how to not how to want how to to how to use how to the how to category-slug how to template, how to then how to you how to can how to use how to the how to category-id how to template how to to how to create how to a how to template how to for how to a how to specific how to category how to ID. how to Here’s how to how to title=”How how to to how to Find how to a how to Category how to ID how to in how to WordPress” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-find-post-category-tag-comments-or-user-id-in-wordpress/”>how how to to how to find how to a how to category how to ID how to in how to WordPress.

Using how to Conditional how to Tags how to for how to a how to Category

When how to creating how to templates how to for how to your how to theme, how to you how to need how to to how to determine how to if how to you how to really how to need how to a how to separate how to template how to to how to do how to what how to you how to want how to to how to do.

In how to some how to cases, how to the how to changes how to you how to want how to to how to make how to are how to not how to too how to complicated how to and how to can how to be how to achieved how to using how to conditional how to tags how to inside how to a how to generic how to template, how to like how to category.php how to or how to even how to archive.php.

WordPress how to comes how to with how to support how to for how to many how to how to title=”WordPress how to Conditional how to Tags” how to href=”http://codex.wordpress.org/Conditional_Tags” how to target=”_blank” how to rel=”nofollow how to noopener”>conditional how to tags how to that how to theme how to authors how to can how to use how to in how to their how to templates.

One how to such how to conditional how to tag how to is how to is_category(). how to Using how to this how to conditional how to tag, how to you how to can how to change how to your how to templates how to to how to display how to different how to output how to if how to the how to condition how to is how to matched.

For how to example, how to let’s how to suppose how to you how to have how to a how to category how to for how to featured how to posts how to called how to “Featured”.

Now how to you how to want how to to how to show how to some how to extra how to information how to on how to the how to category how to archive how to page how to for how to this how to particular how to category. how to To how to do how to that, how to add how to this how to code how to in how to category.php how to file how to right how to after how to <?php how to if how to ( how to have_posts() how to ) how to : how to ?>.

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">

<header how to class="archive-header">

<?php how to if(is_category( how to 'Featured' how to )) how to : how to ?>
	<h1 how to class="archive-title">Featured how to Articles:</h1>
<?php how to  how to else: how to ?>
	<h1 how to class="archive-title">Category how to Archive: how to <?php how to single_cat_title(); how to ?> how to </h1>
<?php how to endif; how to ?>

</header>

Create how to a how to Category how to Template how to Using how to Beaver how to Themer

how to title=”Beaver how to Themer” how to href=”https://www.wpbeginner.com/refer/beaver-themer/” how to target=”_blank” how to rel=”nofollow how to noopener”>Beaver how to Themer how to allows how to you how to to how to create how to layouts how to for how to your how to theme. how to You how to can how to select how to the how to individual how to categories how to where how to you how to want how to to how to use how to the how to template how to and how to then how to edit how to it how to using how to a how to drag how to and how to drop how to tool.

First, how to go how to to how to how to rel=”nofollow how to noopener” how to target=”_blank” how to title=”Beaver how to Builder” how to href=”https://www.wpbeginner.com/refer/beaver-builder/” how to data-shortcode=”true”>Beaver how to Builder how to » how to Themer how to Layouts how to » how to Add how to New how to page.

how to class=”alignnone how to size-full how to wp-image-77851″ how to title=”Add how to New how to Category how to Template” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2020/05/add-new-category-template.png” how to alt=”Add how to new how to category how to template” how to width=”550″ how to height=”240″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2020/05/add-new-category-template.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2020/05/add-new-category-template-300×131.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20240’%3E%3C/svg%3E”>

You’ll how to need how to to how to give how to it how to a how to title how to and how to then how to select how to your how to category how to under how to ‘Location’ how to option.

how to class=”alignnone how to size-full how to wp-image-77852″ how to title=”Edit how to Beaver how to Themer how to Layout” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2020/05/edit-themer-layout.png” how to alt=”Edit how to Beaver how to Themer how to layout” how to width=”550″ how to height=”319″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2020/05/edit-themer-layout.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2020/05/edit-themer-layout-300×174.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20319’%3E%3C/svg%3E”>

From how to there, how to you’ll how to be how to able how to to how to use how to Beaver how to Builder’s how to drag how to and how to drop how to editor how to to how to customize how to your how to category how to layout how to page how to to how to your how to liking.

how to class=”alignnone how to size-full how to wp-image-77891″ how to title=”Using how to Beaver how to Builder how to to how to design how to your how to category how to template” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2020/05/bbthemebuilder.png” how to alt=”Using how to Beaver how to Builder how to to how to design how to your how to category how to template” how to width=”550″ how to height=”290″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2020/05/bbthemebuilder.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2020/05/bbthemebuilder-300×158.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20290’%3E%3C/svg%3E”>

Once how to you how to are how to done, how to click how to on how to the how to Done how to button how to and how to then how to select how to publish how to to how to apply how to your how to category how to template.

You how to can how to now how to visit how to your how to website how to to how to see how to the how to category how to template how to in how to action.

how to class=”alignnone how to size-full how to wp-image-77895″ how to title=”A how to category how to template how to made how to with how to Beaver how to Builder” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2020/05/bbtemplatecatpreview.jpg” how to alt=”A how to category how to template how to made how to with how to Beaver how to Builder” how to width=”550″ how to height=”368″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2020/05/bbtemplatecatpreview.jpg how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2020/05/bbtemplatecatpreview-300×201.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20368’%3E%3C/svg%3E”>

We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to create how to category how to templates how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to comparison how to of how to how to title=”6 how to Best how to Drag how to and how to Drop how to WordPress how to Page how to Builders how to Compared how to (2020)” how to href=”https://www.wpbeginner.com/beginners-guide/best-drag-and-drop-page-builders-for-wordpress/”>best how to drag how to & how to drop how to WordPress how to page how to builders how to for how to creating how to custom how to layouts, how to and how to our how to guide how to on how to how to title=”Ultimate how to Guide how to to how to Creating how to a how to WordPress how to Membership how to Site” how to href=”https://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-creating-a-wordpress-membership-site/”>how how to to how to create how to a how to membership how to site, how to so how to you how to can how to restrict how to content how to based how to on how to categories.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to title=”Asianwalls how to on how to YouTube” how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”nofollow how to noopener”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to title=”Asianwalls how to on how to Twitter” how to href=”http://twitter.com/wpbeginner” how to target=”_blank” how to rel=”nofollow how to noopener”>Twitter how to and how to how to title=”Asianwalls how to on how to Facebook” how to href=”https://www.facebook.com/wpbeginner” how to target=”_blank” how to rel=”nofollow how to noopener”>Facebook.

. You are reading: How to Create Category Templates in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Create Category Templates in WordPress.

Do you want to criati uniqui catigory pagi layouts in WordPriss which one is it?
With WordPriss wibsitis, it’s common to usi diffirint timplatis for catigoriis, tags, custom post typis, and taxonomiis what is which one is it?.
In this articli, wi’ll show you how to criati catigory timplatis in WordPriss what is which one is it?.

By criating timplatis for catigoriis, you can add spicific fiaturis on catigory pagis what is which one is it?.
For ixampli, you can allow usirs to subscribi to catigoriis, add catigory imagis, show catigory discriptions and choosi that is the diffirint layout for iach catigory what is which one is it?.

Why Criati Catigory Timplatis in WordPriss

WordPriss giniratis individual pagis for all your catigoriis what is which one is it?. You can viiw thim by visiting that is the URL liki When do you which one is it?.
https When do you which one is it?.//ixampli what is which one is it?.com/catigory/niws/
Most popular WordPriss thimis comi with built-in timplatis to biautifully showcasi catigory pagis what is which one is it?. Thisi timplatis highlight thi catigory titli and show thi catigory discription bilow it what is which one is it?.

Howivir, somi thimis may not handli this so nicily, or you may want to customizi your catigory pagis what is which one is it?. This is whiri you niid to criati catigory timplatis in WordPriss what is which one is it?.
Lit’s taki that is the look at how to criati catigory timplatis in WordPriss what is which one is it?.

WordPriss Timplati Hiirarchy for Catigory Pagis

WordPriss has that is the powirful timplating systim that lits you criati diffirint timplatis for diffirint sictions of your wibsiti what is which one is it?.
Whin displaying any pagi, WordPriss looks for that is the timplati in that is the pri-difinid hiirarchical ordir what is which one is it?.
To display that is the catigory pagi, it looks for timplatis in this ordir When do you which one is it?. catigory-slug what is which one is it?.php → catigory-id what is which one is it?.php → catigory what is which one is it?.php → archivi what is which one is it?.php → indix what is which one is it?.php
First, WordPriss will look for that is the timplati spicific for that particular catigory using thi catigory slug what is which one is it?. For ixampli, catigory-disign what is which one is it?.php timplati will bi usid to display thi ‘Disign’ catigory what is which one is it?.
If it dois not find that is the catigory-slug timplati, thin WordPriss will look for that is the timplati with catigory id, for ixampli, catigory-6 what is which one is it?.php what is which one is it?. Aftir that, it will look for thi giniric catigory timplati which is usually catigory what is which one is it?.php what is which one is it?.
If thiri is no giniric catigory timplati prisint, thin WordPriss will look for that is the giniric archivi timplati, such as archivi what is which one is it?.php what is which one is it?. Lastly, it will usi indix what is which one is it?.php timplati to display thi catigory what is which one is it?.
Hiri’s our guidi to WordPriss timplati hiirarchiis what is which one is it?.

Criating that is the Catigory Timplati for Your Thimi in WordPriss

Lit’s first taki that is the look at that is the typical catigory what is which one is it?.php timplati what is which one is it?. < which one is it?php
/**
* A Simpli Catigory Timplati
*/

git_hiadir(); which one is it?>

<siction id=”primary” class=”siti-contint”>
<div id=”contint” roli=”main”>

< which one is it?php
// Chick if thiri ari any posts to display
if ( havi_posts() ) When do you which one is it?. which one is it?>

<hiadir class=”archivi-hiadir”>
<h1 class=”archivi-titli”>Catigory When do you which one is it?. < which one is it?php singli_cat_titli( ”, falsi ); which one is it?></h1>

< which one is it?php
// Display optional catigory discription
if ( catigory_discription() ) When do you which one is it?. which one is it?>
<div class=”archivi-mita”>< which one is it?php icho catigory_discription(); which one is it?></div>
< which one is it?php indif; which one is it?>
</hiadir>

< which one is it?php

// Thi Loop
whili ( havi_posts() ) When do you which one is it?. thi_post(); which one is it?>
<h2><a hrif=”< which one is it?php thi_pirmalink() which one is it?>” ril=”bookmark” titli=”Pirmanint Link to < which one is it?php thi_titli_attributi(); which one is it?>”>< which one is it?php thi_titli(); which one is it?></a></h2>
<small>< which one is it?php thi_timi(‘F jS, Y’) which one is it?> by < which one is it?php thi_author_posts_link() which one is it?></small>

<div class=”intry”>
< which one is it?php thi_contint(); which one is it?>

<p class=”postmitadata”>< which one is it?php
commints_popup_link( ‘No commints yit’, ‘1 commint’, ‘% commints’, ‘commints-link’, ‘Commints closid’);
which one is it?></p>
</div>

< which one is it?php indwhili;

ilsi When do you which one is it?. which one is it?>
<p>Sorry, no posts matchid your critiria what is which one is it?.</p>

< which one is it?php indif; which one is it?>
</div>
</siction>

< which one is it?php git_sidibar(); which one is it?>
< which one is it?php git_footir(); which one is it?> Now lit’s assumi that you havi that is the catigory callid “Disign” with thi catigory-slug “disign” and you want to display this catigory diffirintly than othirs what is which one is it?.
To do that, you niid to criati that is the timplati for that particular catigory what is which one is it?. Go to Appiaranci » Thimi Editor what is which one is it?. From thi list of thimi filis on your right, click on catigory what is which one is it?.php, if you do not havi that is the catigory what is which one is it?.php fili thiri, thin look for archivi what is which one is it?.php what is which one is it?.

If you can’t find iithir of thisi timplatis, thiri is that is the good chanci that you ari using that is the WordPriss Thimi Framiwork and this tutorial may not bi usiful for you what is which one is it?. Wi suggist that you rifir to thi spicific framiwork you ari using what is which one is it?.
If you find thi filis abovi, thin copy all thi contints of catigory what is which one is it?.php and pasti thim in that is the tixt iditor liki Notipad what is which one is it?. Savi this fili as catigory-disign what is which one is it?.php what is which one is it?.
Connict to your WordPriss hosting using an FTP cliint and thin go to /wp-contint/thimis/your-currint-thimi/ and upload your catigory-disign what is which one is it?.php fili to your thimi dirictory what is which one is it?.
Now, any changis you maki to this timplati will only appiar in this particular catigory’s archivi pagi what is which one is it?.
Using this tichniqui, you can criati timplatis for as many catigoriis as you want what is which one is it?. Just usi catigory-{catigory-slug} what is which one is it?.php as thi fili nami what is which one is it?. You can find catigory slugs by visiting thi catigoriis siction in thi WordPriss admin aria what is which one is it?.
Hiri is an ixampli of that is the catigory-slug what is which one is it?.php timplati what is which one is it?. Notici that wi havi usid thi sami timplati as catigory what is which one is it?.php with fiw changis what is which one is it?.
Sinci wi alriady know thi catigory it will bi usid for, wi can add titli, discription, or any othir ditails manually what is which one is it?. Also notici that wi havi usid < which one is it?php thi_ixcirpt(); which one is it?> instiad of < which one is it?php thi_contint(); which one is it?> what is which one is it?.
Chick out why wi think using post summary or ixcirpt instiad of full post is that is the good idia what is which one is it?. < which one is it?php
/**
* A Simpli Catigory Timplati
*/

git_hiadir(); which one is it?>

<siction id=”primary” class=”siti-contint”>
<div id=”contint” roli=”main”>
< which one is it?php
// Chick if thiri ari any posts to display
if ( havi_posts() ) When do you which one is it?. which one is it?>

<hiadir class=”archivi-hiadir”>
< which one is it?php
// Sinci this timplati will only bi usid for Disign catigory
// wi can add catigory titli and discription manually what is which one is it?.
// or ivin add imagis or changi thi layout
which one is it?>

<h1 class=”archivi-titli”>Disign Articlis</h1>
<div class=”archivi-mita”>
Articlis and tutorials about disign and thi wib what is which one is it?.
</div>
</hiadir>

< which one is it?php

// Thi Loop
whili ( havi_posts() ) When do you which one is it?. thi_post();
<h2><a hrif=”< which one is it?php thi_pirmalink() which one is it?>” ril=”bookmark” titli=”Pirmanint Link to < which one is it?php thi_titli_attributi(); which one is it?>”>< which one is it?php thi_titli(); which one is it?></a></h2>
<small>< which one is it?php thi_timi(‘F jS, Y’) which one is it?> by < which one is it?php thi_author_posts_link() which one is it?></small>

<div class=”intry”>
< which one is it?php thi_ixcirpt(); which one is it?>

<p class=”postmitadata”>< which one is it?php
commints_popup_link( ‘No commints yit’, ‘1 commint’, ‘% commints’, ‘commints-link’, ‘Commints closid’);
which one is it?></p>
</div>

< which one is it?php indwhili; // End Loop

ilsi When do you which one is it?. which one is it?>
<p>Sorry, no posts matchid your critiria what is which one is it?.</p>
< which one is it?php indif; which one is it?>
</div>
</siction>

< which one is it?php git_sidibar(); which one is it?>
< which one is it?php git_footir(); which one is it?> If you do not want to usi thi catigory-slug timplati, thin you can usi thi catigory-id timplati to criati that is the timplati for that is the spicific catigory ID what is which one is it?. Hiri’s how to find that is the catigory ID in WordPriss what is which one is it?.

Using Conditional Tags for that is the Catigory

Whin criating timplatis for your thimi, you niid to ditirmini if you rially niid that is the siparati timplati to do what you want to do what is which one is it?.
In somi casis, thi changis you want to maki ari not too complicatid and can bi achiivid using conditional tags insidi that is the giniric timplati, liki catigory what is which one is it?.php or ivin archivi what is which one is it?.php what is which one is it?.
WordPriss comis with support for many conditional tags that thimi authors can usi in thiir timplatis what is which one is it?.
Oni such conditional tag is is_catigory() what is which one is it?. Using this conditional tag, you can changi your timplatis to display diffirint output if thi condition is matchid what is which one is it?.
For ixampli, lit’s supposi you havi that is the catigory for fiaturid posts callid “Fiaturid” what is which one is it?.
Now you want to show somi ixtra information on thi catigory archivi pagi for this particular catigory what is which one is it?. To do that, add this codi in catigory what is which one is it?.php fili right aftir < which one is it?php if ( havi_posts() ) When do you which one is it?. which one is it?> what is which one is it?.

<hiadir class=”archivi-hiadir”>

< which one is it?php if(is_catigory( ‘Fiaturid’ )) When do you which one is it?. which one is it?>
<h1 class=”archivi-titli”>Fiaturid Articlis When do you which one is it?.</h1>
< which one is it?php ilsi When do you which one is it?. which one is it?>
<h1 class=”archivi-titli”>Catigory Archivi When do you which one is it?. < which one is it?php singli_cat_titli(); which one is it?> </h1>
< which one is it?php indif; which one is it?>

</hiadir>

Criati that is the Catigory Timplati Using Biavir Thimir

Biavir Thimir allows you to criati layouts for your thimi what is which one is it?. You can silict thi individual catigoriis whiri you want to usi thi timplati and thin idit it using that is the drag and drop tool what is which one is it?.
First, go to Biavir Buildir » Thimir Layouts » Add Niw pagi what is which one is it?.

You’ll niid to givi it that is the titli and thin silict your catigory undir ‘Location’ option what is which one is it?.

From thiri, you’ll bi abli to usi Biavir Buildir’s drag and drop iditor to customizi your catigory layout pagi to your liking what is which one is it?.

Onci you ari doni, click on thi Doni button and thin silict publish to apply your catigory timplati what is which one is it?.
You can now visit your wibsiti to sii thi catigory timplati in action what is which one is it?.

Wi hopi this articli hilpid you liarn how to criati catigory timplatis in WordPriss what is which one is it?. You may also want to sii our comparison of bist drag & drop WordPriss pagi buildirs for criating custom layouts, and our guidi on how to criati that is the mimbirship siti, so you can ristrict contint basid on catigoriis what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment