워드프레스 댓글 기능 WordPress turn on off comment

워드프레스 댓글 기능 활성화 및 비활성화 WordPress turn on/off comment on posts and pages

워드프레스를 운영하다보면 스팸성 댓글들이 많이 노출되는 글이나 페이지에 집중적으로 생기는것을 볼 수 있습니다. 이런 경우 전체글이나 또는 페이지에 댓글 기능을 활성화 또는 비활성화 시킬 수 있습니다. 그리고 특정글이나 페이만 따로 댓글 기능을 활성화 또는 비활성화 시킬 수 있습니다. 

 

모든 글 또는 페이지에 댓글 비활성화하는 방법 (Disable comments on all the posts or pages)

포스트에 대한 댓글 비활성화 방법 (Disable comments on all the posts)

  • 설정(control panel) – 토론(Discussion) – 새로운 글에 대한 댓글 허락 체크표시 해제, 자동으로 14일보다 오래된 글에 대한 댓글 방지(Uncheck following 2 options)

 

페이지에 댓글 비활성화 방법 (Disable comments on all the pages)

  • 테마 에디터 메뉴에서 “functions.php” 파일에 아래 코드를 추가해주면 됩니다. (Add this code to functions.php file. This code will remove comment support for pages.)

//remove comments from pages
add_action('init', 'remove_comment_support', 100);

function remove_comment_support() {
remove_post_type_support( 'page', 'comments' );
}

 

개별 글 또는 페이지에 댓글 비활성화하는 방법 (Disable comments on a single post or page)

  • 워드프레스 왼편에 있는 제어판(control panel) – 포스트 또는 페이지 선택(Posts or pages) – 모든글 또는 모든 페이지 선택(All posts or All pages) – 목록에서 댓글을 비활성화하고 싶은 글 선택(Click the post what you want to disable comment) – 오른편 상단의 “스크린 옵션” 클릭(Click on the “Screen Options” button on the top right side of the page ) – 토론 체크박스 클릭(Check the “Discussion” checkbox) – 스크린 옵션창 닫기(Close the “Screen options”) – 하단에 댓글 허용하기 체크박스 해제(Uncheck the “Allow comments” at the bottom of the content box)

 

  • 글 쓰는 창 바로 밑에 아래와 같이 댓글을 비활성화 시킬 수 있는 체크박스가 나타납니다.

 

  • 아래와 같이 댓글창이 없어진것을 확인할 수 있습니다.

 

업데이트 글 보기 (For more information, visit main hompage) : http://gturl.iptime.org

댓글 남기기