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

    (@mikejolley)

    The code would go in your theme functions.php file. I assume you are talking about the code to enable comments? The theme must also support comments or nothing will be shown, and ‘discussion’ must be enabled on the listing.

    Thread Starter goldensun

    (@goldensun)

    I am using the jobify of astoundify and I think it suitable for the plugin. I already put the code in the function.php but nothing happened or showed up. So I wonder that did I put the code in the right place ? Where should I put in the function.php file ?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Can you paste the code you’ve used? Anywhere in your functions.php file is fine.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Can you paste the code you’ve used? Anywhere in your functions.php file is fine.

    Thread Starter goldensun

    (@goldensun)

    This is the code I’ve used from documentation

    // Add comment support to the post type
    add_filter( ‘register_post_type_resume’, ‘register_post_type_resume_enable_comments’ );

    function register_post_type_resume_enable_comments( $post_type ) {
    $post_type[‘supports’][] = ‘comments’;
    return $post_type;
    }

    // Make comments open by default for new resumes
    add_filter( ‘submit_resume_form_save_resume_data’, ‘custom_submit_resume_form_save_resume_data’ );

    function custom_submit_resume_form_save_resume_data( $data ) {
    $data[‘comment_status’] = ‘open’;
    return $data;
    }

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Looks fine there. If you edit the listing, do you see the ‘discussion’ meta box and are comments enabled?

    Thread Starter goldensun

    (@goldensun)

    Can you say it more detail where is the discussion meta box, because I am the new one in wordpress.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter goldensun

    (@goldensun)

    I am sorry but I didnt see this @@

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    If its not there, see if its disabled in screen options, top right of the screen.

    Thread Starter goldensun

    (@goldensun)

    I saw it in the resume page, so I need to check it on, right ?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    yes it needs to be checked or the meta box will not be displayed.

    Thread Starter goldensun

    (@goldensun)

    Thank you so much, I will try and post the result late.

    Thread Starter goldensun

    (@goldensun)

    I did like you said but nothing happened. I could not see the comment part for it

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    What version of Jobify is this? The snippet worked for me first time, but this was without jobify.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘How to enable comments for resumes’ is closed to new replies.