Same question :
Is it possible to enable comments for projects ?
It’s ok I’ve found the function.
put it in your function.php
<?php add_action('init', 'add_comments_to_projects');
function add_comments_to_projects() {
add_post_type_support( 'projects', 'comments' );
}
?>
replace projects by yourportfolioname
After :
in the single_projects.php or single_yourportfolioname.php
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
?>
simple.
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
I tried the above code but it did not work. Maybe because that was a year ago and the new WP isn’t compatible??? I really want comments in the single page projects. Please advise.
(@mattmaldre)
8 years, 6 months ago
Is it possible to enable comments for projects?
https://wordpress.org/plugins/projects-by-woothemes/