How can I enable the comment form an single page, a singe portfolio item or add it to a dynamic template? Is there a way?
Any help is appreciated.
Thanks, Artur
How can I enable the comment form an single page, a singe portfolio item or add it to a dynamic template? Is there a way?
Any help is appreciated.
Thanks, Artur
Hey,
you would include
comments_template( '/includes/comments.php');
wherever you'd like to have your comments/comment form displayed.
In your case it would be in single.php and in single-portfolio.php around this line
get_template_part( 'includes/related-portfolio-posts');
Thank you for the hint. I modified the files to display the comments form in page and single portfolio.
Glad that Chris could help you :)
I have included the code snippet above to show comments on custom templates (Corona Theme), but also need some sort of conditional code to make the display (or non-display) of comments agree with the "Allow comments" check box for any given posting.
Allowing comments works great, the box appears, etc. But if I choose to not allow comments, I still get this block of text:
Comments are closed.
Leave a Reply
Want to join the discussion?
Feel free to contribute!
Anyway to make that not appear?
Thanks,
Carl
Could you link to a page where this occurs? It should be easy to do this with CSS.
You must log in to post.