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

Template for Custom Post Types

설명

This plugin will allow you to assign page template to any custom post type or posts same as Page. The template will be used to display single post in front end.

You can create template same as page template for wordpress pages. You need to select post types where you want to apply template from settings page of this plugin from admin side.

To create template file you need to create .php file in current theme’s directory with Template Name: your template name in comment at first line of your file. Ex.

You can create template files in subdirectory of current theme folder also. Now WordPress 4.7 has introduced this functionality in core.

스크린샷

  • Setting screen
  • Template file example
  • Assign template
  • Display in front

설치

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Templates for CP screen to configure the plugin
  4. Select post types for which you want to assign page templates
  5. You can create template file same as for page with Template name in comment of template file
  6. Choose template from metabox for custom post types you have selected in plugin setting screen

FAQ

Any suggestions or queries are welcome at my email address: rahulgandhi1010@gmail.com

후기

2017년 5월 16일 1 reply
Only works if your templates are in your parent theme. I can't do this because I have a child theme and need it to work there. Sorry

No!

2016년 9월 10일 1 reply
Didn/t work and did not see a way to add a template.
2016년 9월 3일
I have made this plugin very light weight so that users will not face any problems about conflicts with other plugins or Query conflicts. If you like my plugin then rate it 5 starts. I will add some more useful light weight plugins to the WordPress repository soon.
2016년 9월 3일
Thanks, Rahul, this a great plugin. Most importantly it outputs a page template class into the body tag. I've noticed other plugins like this don't always do this. The body class is super handy for styling. A small request. At the moment, the body class outputs with a forward slash. For example: page-template-page-templates/full-width-php. Perhaps that could be changed to a hyphen in future? Thanks again 🙂
모든 7 평가 읽기

기여자 & 개발자

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

기여자

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

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

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

변경이력

1.0.5

  • Compatible with WordPress 4.7

1.0.4

  • Compatible with WordPress 4.6.1

1.0.3

  • Compatible with WordPress 4.5

1.0

  • Our First release of the plugin.