Más contenido relacionado La actualidad más candente (20) WordCamp Seoul 2012 - WordPress Custom Post type1. Custom Post Type
@ssamture
By 임민형 ssamture@gmail.com
http://ssamture.net
WordCamp Seoul 2012
Seoul, South Korea - May 26
Track3 – 14:10
2. 미리보기
• Post 와 Page
• Custom Post Type
• Custom Meta Box
• Custom Filelds
• Filter를 이용한 Cutom Fileds 출력
• Custom Post Type을 위한 테마 템플릿
• Custom Post list(관리자패널)
• Custom Taxonomies
WordCamp Seoul 2012 @ssamture
4. POST 와 PAGE
• POST
- title, content, tag, category
- 시간
- 포멧
WordCamp Seoul 2012 @ssamture
6. POST 와 PAGE
• PAGE
- title, content
- 상위 page
- 템플릿 적용
WordCamp Seoul 2012 @ssamture
9. Custom Post Type
• 반복되는 메타정보를 입력할 때
- 갤러리(촬영날짜, 촬영장소 등)
- 쇼핑몰(제품가격, 제품색상 등)
• 특정 UI를 적용할 때
WordCamp Seoul 2012 @ssamture
10. Custom Post Type
• 모든 내용은 posts 테이블에 저장
- post, page, attachment, menu 등
WordCamp Seoul 2012 @ssamture
27. Custom Post Type
post_formats
page-attributes
thumbnail
WordCamp Seoul 2012 @ssamture
28. Custom Post Type
trackbacks
custom-fileds
comments
author
WordCamp Seoul 2012 @ssamture
29. Custom Post Type
supports 제거
supports 추가 후
supports 추가 전
WordCamp Seoul 2012 @ssamture
31. Custom Meta Box
• 메타 데이터
• 포스트에 별도의 새로운 정보를 부여
WordCamp Seoul 2012 @ssamture
32. Custom Meta Box
• add_meta_boxes action
• add_meta_box function
WordCamp Seoul 2012 @ssamture
41. 메타 출력
• Filter를 이용하여 출력
• 테마 파일에서 출력
WordCamp Seoul 2012 @ssamture
45. 메타 출력(테마에서)
• single-{post_type}.php
WordCamp Seoul 2012 @ssamture
48. 목록 커스터마이징(관리자 화면)
• manage_edit-{post_type}_column
• manage_{post_type}_posts_custom_column
50. 목록 커스터마이징(관리자 화면)
• manage_edit-{post_type}_columns
WordCamp Seoul 2012 @ssamture
52. 메타 출력
• manage_{post_type}_posts_custom_column
WordCamp Seoul 2012 @ssamture
58. 텍소노미 추가
• custom post type을 위한 카테고리 추가
WordCamp Seoul 2012 @ssamture
59. 텍소노미 추가
• register_taxonomy($taxonomy, $object_type,
$args)
WordCamp Seoul 2012 @ssamture
62. Parent Post in a Metabox
• add_meta_box
WordCamp Seoul 2012 @ssamture
63. Parent Post in a Metabox
• add_meta_box
WordCamp Seoul 2012 @ssamture