How to Customize Category Page?

Currently, the Category page is looking like this:

I want something like this:

I already read a few articles on these topics:

Beginner’s Guide to WordPress Template Hierarchy (Cheat Sheet)

How to Create a Custom Page in WordPress

I’ve a question, Am I going in the right direction?

Because as per the guide I need to create a template [category-{category-slup}.php] and then copy-paste the content of category.php

Once done, I can modify [category-{category-slup}.php] as per I need.

How do I make modifications in PHP?

Is this a developer work or Plugin can save me?

1 Like

Elementor (PRO) can help you without all these…

But the latest update has a lot of bugs :bug:

Yes! But it costs $50/ year. Is there any free alternative?

1 Like

I don’t think so there is any free alternative to Elementor.

Only way left is making a category-{slug}.php file as you have mentioned.

You just need to put the html(with some modifications) in the PHP loop.

// Check if there are any posts to display
if ( have_posts() ) : ?>

// The Loop
while ( have_posts() ) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<?php endwhile; 

else: ?>
<li>Sorry, no posts matched your criteria.</li>
<?php endif; ?>

The above code will loop over the post and render it in a list (The way you showed, but without style)

credit:- WPbeginner with some edit by me :wink:

You have to put this in category-{slug}.php but you need to put main content from category.php first…

I need to give it a try. Let’s see how it work. Thanks