Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    This code in functions.php will enable comments:

    add_filter( 'register_post_type_job_listing', 'custom_register_post_type_job_listing' );
    
    function custom_register_post_type_job_listing( $args ) {
      $args['supports'][] = 'comments';
      return $args;
    }

    Creating a job currently posts jobs with comments closed – I will add a filter in the next update to get around this, so as of version 1.2.1 you’ll be able to use:

    add_filter( 'submit_job_form_save_job_data', 'custom_submit_job_form_save_job_data' );
    
    function custom_submit_job_form_save_job_data( $args ) {
      $args['comment_status'] = 'open';
      return $args;
    }

    Until then, after the first change, you can enable comments by editing the job itself.

    Thread Starter ruralinfo

    (@ruralinfo)

    Thank you Mike, worked perfect.. Excellent plugin!!

    hi mike thank you for that, can you explain how to enable short codes in job listing pages :))

    thank youu

    Hi, Please clearify where to paste the code above. It doesnt work for me yet.

    can I make it automatically to add comments? can they be visiable only to the owner of the job list?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    The functions go in theme functions.php. Any changes to comment visibility would need to be done via your theme template files.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can I add comments to each job listing’ is closed to new replies.