Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Topic / Category Template

Old Oct 8, 2009, 07:04 PM
6 posts · Oct 2009

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...

Old Oct 9, 2009, 05:19 AM
juggledad's Avatar
23,614 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
why not make a copy of the index.php and create a template from it? Just make sure to add
HTML Code:
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.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


categories, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Template and Category Templates baszero Atahualpa 3 Wordpress theme 3 Oct 7, 2009 06:27 AM
How do I create a new page template? JakeThePeg Page & Category Menu Bars 10 Sep 7, 2009 10:33 AM
[SOLVED] &quot;Read more&quot; on category template pages is dead mcphoto Excerpts, Read more, Pagination 2 Jul 23, 2009 09:23 AM
Help! template is missing!? I'm in a hurry! nasu Installing & running WordPress 4 Jun 30, 2009 07:12 PM
New Template Page Axon Atahualpa 3 Wordpress theme 1 Feb 8, 2009 01:34 PM

All times are GMT -6. The time now is 06:23 PM.

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