이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Custom Post Type Template Redirect

설명

One of the shortcomings of Custom Post Types in WordPress is that there’s no way to easily set a different custom template from the standard single.php. If it’s a custom post type, it’s got custom information, and I want to put it in a custom template!

So I threw together a plugin to handle this. With this plugin installed and activated, it checks your template directory for posttype.php then t_posttype.php. If neither exists, then the standard WP template rules take effect.

For example, if your custom post type is ‘books’, it’s going to check your template directory for ‘books.php’. If it finds it, it will use that as the template for your ‘books’ posts. If not, it will check for ‘t_books.php’, and use that as the template for your ‘books’ posts. If it finds neither, the standard WP logic kicks into place, looking to see if you’ve defined a template for the post, and, if not, using single.php.

설치

Simply install and activate this plugin, then start putting your templates for custom post types into your theme’s directory using the naming structure above.

FAQ

Does this plugin create new custom post types?

No, it only changes the order in which WP looks for the template file to display posts belonging to a custom post type.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Custom Post Type Template Redirect”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Custom Post Type Template Redirect”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.