WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
    
I tried this plugin and does the same I just don't really need to edit those files and the best thing is I can use my page builder to design my category pages. magnigenie.com/product/wordpress-custom-taxonomy-category-pages – Nirmal Ram Nov 26 '15 at 8:31

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.