Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My blog have 2 categories: Photos and Texts.

I would like do customize the category template so that when it renders Photos post's, I want to show a thumbnail gallery and when it renders Texts post's, I want show only the excerpt.

There is an way to do this without hardcoding on category.php? Or, at least, how is the best way to do this?

Thank you!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

create category templates; i.e. category-photos.php and category-texts.php; starting with a copy of the code from category.php. you will still need to hard-code the changes in each template.

share|improve this answer
    
Thank you very much. It solved perfectly my question. –  MCardinale Jul 29 '11 at 12:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.