Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Topic / Category Template (http://forum.bytesforall.com/showthread.php?t=3789)

baszero Oct 8, 2009 07:04 PM

Topic / Category Template
 
Hi,

I wanted to have a special rendering for single pages of a certain category, so I extended the index.php of this theme.

This works great. Now I would like to reuse the same code for the category-9.php file (given ID=9 of that category).

Would it be possible to move the whole code to category-9.php and include it somehow from the index.php? Have not found anything about this...

thanks

juggledad Oct 9, 2009 05:19 AM

why not make a copy of the index.php and create a template from it? Just make sure to add
HTML Code:

<?php
/*
Template Name: xxxxxxx template
*/
 ?>

<?php // Do not delete these lines ?>
------

to the begining (where xxxxxxx=the name you want to use), customize it and store it in the Atahualpa folder. Then add a page and select it from the templates.


All times are GMT -6. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.