How to customize the categories

[ad_1]

Hi,

I created two categories: one to show mostly images, let’s call it category A, and one to show posts containing text, category B.

I realized that to have the images showing up for category A, I needed to tweak the archive template and add the Post Content to the query loop.
Furthermore, I also changed the query loop to show 4 columns.

The problem is, now when I go to category B I see the full content of the posts, but the Read More seems to be ignored. Also, instead of showing one column for the text post as I’d like in this case, of course, it displays 4 columns since I modified the query look in the Archive template.

What can I do to have two different templates for the two different categories?

Do I need to modify the category.php file? If so, wouldn’t that still affect both categories?

I have a generic knowledge of HTML, and CSS, but not PHP.

Thanks for any help!

[ad_2]
1 Comment
  1. To have two different categories display different content, the simplest way would be to create a template file for each of them, not necessarily editing the main archive template. See wordpress codex for more info:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer