How to use custom category templet in wordpress?

Use custom category templet in wordpress.

custom category templet in wordpress.

custom category templet plugin in wordpress.

Solution is like a below:

Simple lightweight plugin that lets you select a specific template
for a category each, just like page template
If you want to use cuslom category templet,
Then you have to create templet.

Following steps How to craete a templet:

Step:1-Create new php page.
Step:2-Write into a below code:

<?php

/* Template Name: Custom Template */

get_header(); ?>

<div id="primary">

<div id="content" role="main">

<?php while ( have_posts() ) : the_post(); ?>

<?php if ( has_post_thumbnail() ) : ?>

<div>

<?php the_post_thumbnail(); ?>

</div><!-- .entry-page-image -->

<?php endif; ?>

<?php get_template_part( 'content', 'page1' ); ?>

<?php endwhile; // end of the loop. ?>

</div><!-- #content -->

</div><!-- #primary -->

<?php get_sidebar( 'front' ); ?>

<?php get_footer(); ?>
Step:3-Save into your page templet into wordpress folder.
Step:4-Here I save into wordpress->wp-content->theme->twentytwelve->page-templet.
Step:5-Your templet has been complete.

Then follow below steps how to add category:

Step:1-Go to your wp-admin.
Step:2-Go to post->category->Add new category.
Step:3-Fill all details without slug.
Step:4-Click on add new category
Step:5-Then click on view page.

Your category has been successfully added.

category, category template, category theme, custom template

About the Author

avatar