Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Topic / Category Template


  #1  
Old Oct 8, 2009, 07:04 PM
baszero
 
6 posts · Oct 2009
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
  #2  
Old Oct 9, 2009, 05:19 AM
juggledad's Avatar
juggledad
 
23,765 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:
<?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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
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 01:50 PM.


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