Question

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

Thanks

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top