Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.]

    Thread Starter mattmaldre

    (@mattmaldre)

    Thank you, Emmanuel!

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments in projects’ is closed to new replies.