WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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

I'm looking for a way to let users comment categories on category.php, but I haven't been able to find one. Simple pasting didn't do the trick (didn't really expect it to.)

For clarification, I'm not looking for users to comment posts in category.php, but rather to comment the category itself. Is it possible?

share|improve this question

Short answer: No, it is impossible, if we are talking about WP way, because it was not provided by WP architecture.

It could be done if you create your own plugin (or implement it as a part of theme). To do it you need to create custom table and implement logic for saving comments and displaying comments.

share|improve this answer
This would be nice in the upcoming core releases with the Potential roadmap for taxonomy meta and post relationships – Michael Ecklund Oct 21 '13 at 14:25

This isn't possible out of the box because WordPress can only handle comments on posts, in the broad sense which includes pages, custom post types, etc.

Because a category is a group of posts rather than a post per se, there's no built-in functionality to attach comments to a category.

If you have relatively few categories, you could create a page for each category. Have them use a custom page template including a custom loop to get the category members, and including a comments form.

You can redirect standard category links to this page using the 'category_link' filter.

share|improve this answer

Create a custom page
With your own customized loop
Enable comments on that page.

It won't have the same Url.

It can be done with the same url and the original -without custom tables- wp-comment system but it's much harder.
If you want that ask and I'll look into it.

share|improve this answer
I thought about that, but as you say, the problem is that all category links (as in <?php the_category(); ?>) would have to point to that custom page as well. Considering the time we have for the project, I'm not sure that we'll be able to do something more elaborate either. Still, thanks! – Anders Norén Jun 14 '12 at 11:37
what you could do is: make a custom posttype(hidden) create posts with category names, enable comments there. Load those comments on the category.php template – janw Jun 14 '12 at 12:29

Your Answer


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.