comments - using comments_template() in custom single-portfolio.php

I am wanting my users to be able to post comments on my portfolio page.Ive created a portfolio page using custom posts.O

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

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

Share Improve this question asked Dec 2, 2013 at 13:34 RobertRobert 1993 silver badges12 bronze badges 1
  • this may help you ryanflorence/… – Ravinder Kumar Commented Dec 2, 2013 at 17:47
Add a comment  | 

1 Answer 1

Reset to default 1

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/Function_Reference/register_post_type#Example

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742329684a4423462.html

相关推荐

  • comments - using comments_template() in custom single-portfolio.php

    I am wanting my users to be able to post comments on my portfolio page.Ive created a portfolio page using custom posts.O

    6小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信