Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Category Specific template stopped working after update WordPress

I updated a client site to 3.2.1 and the page that was category specific e.g. category-6.php has stopped working.

I am using magic fields on this page and have updated to the latest version of the plugin.

This is what I have on the page:

<?php get_header(); ?>
<div class="grid_17 suffix_1">
<h1>Client Testimonials</h1>

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="testimonials">
<div class="blockquote">
<h2><?php the_title(); ?></h2>
<?php echo get('testimonial'); ?>
<p class="author"><?php echo get('client_name');?>, <em><?php echo get('company_name'); ?></em></p>
<hr class="space">
<?php endwhile; ?>
<div class="grid_6">
<?php include('includes/inc-cta-side.php'); ?>
<?php get_footer(); ?>

Answers (3)


Maor Barazany answers:

What do you mean by "stopped working" ?

Try these things:

1. Re-save permalinks
2. Try changing the file name from category-6.php to category-<strong>slugname</strong>.php where slugname is the slug of category 6.
3. Deactivate all plugins and see if it might be that a specific plugin causing issue.


Luis Abarca answers:

You mean you see the category.php ?? or shows an error ?

You can also use category-slug.php or archive-slug.php

Luis Abarca comments:

slug = category slug. Ex. news -> category-news.php, archive-news.php


Andrew Cetnarskyj answers:

Sorry I wasn't getting notifications through so didn't see there had been answers.

By not working I mean no content is being written by "the loop" on the category specific template.

I tried changing it to category-slugname.php. I will try the plugin option and post back.

gunkdesign comments:

I tried switching all the plugins off but no luck still nothing