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 am wanting my users to be able to post comments on my portfolio page.

Ive created a portfolio page using custom posts.

On my blog i am using the comments_template(); and then on the comments.php i have the code.

On the blog side it works 100%

But when I add the comments_template(); on the portfolio single page it does nothing.

I get no errors or anything.

How do people implement comments within the portfolio pages?

Can you not use the same comment.php file for all comments, b


share|improve this question
this may help you ryanflorence.com/… – Ravinder Kumar Dec 2 '13 at 17:47
up vote 1 down vote accepted

When registering a custom post type you need to enable comments. In the arguments defining the CPT, you need to include something like this:

'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )

The example on the Codex is shows where this option needs to go, this page also shows a list of other options you may or may not want to include: http://codex.wordpress.org/Function_Reference/register_post_type#Example

share|improve this answer
thanks for that, I totally forgot about accepting it within the custom post supports. – Robert Dec 2 '13 at 20:07

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.