Title: WP Custom Post Template Redux
Author: Mat Gargano
Published: <strong>9 Tháng 7, 2016</strong>
Last modified: 11 Tháng 7, 2016

---

Tìm kiếm plugin

![](https://ps.w.org/wp-custom-post-template-redux/assets/banner-772x250.png?rev
=1451706)

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/wp-custom-post-template-redux.svg)

# WP Custom Post Template Redux

 Bởi [Mat Gargano](https://profiles.wordpress.org/matstars/)

[Tải về](https://downloads.wordpress.org/plugin/wp-custom-post-template-redux.1.4.3.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/wp-custom-post-template-redux/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/wp-custom-post-template-redux/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/wp-custom-post-template-redux/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/wp-custom-post-template-redux/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/wp-custom-post-template-redux/)

## Mô tả

 * This plugin lets you add the custom post templates in your WordPress custom post
   type. You can easily apply your custom post template in custom post type posts,
   just as you would do the same for page templates.
 * The templates are defined similarly to page templates, and if selected will replace
   single-cpt-slug.php (see template hierarchy https://developer.wordpress.org/themes/
   basics/template-hierarchy/) for the specified post.
 * Admin can use default setting for the custom post type plugin by simply clicking
   on default setting button.

Implementation notes:

 * Page templates use, in the comments at the top of the file “Template Name:”, 
   whereas to use this plugin’s custom post templates use “WP Post Template: my-
   post-type-slug” — you can combine page templates and custom post type templates
   by just adding the applicable comments to the PHP file.
 * CPT templates use “WP Post Type:” plus the custom post type slug, e.g. “WP Post
   Type: my-fun-post-type” you can use a single template for multiple post types–
   if you leave it blank it will be available to all post types, which will maintain
   compatibility with WP Custom Post Template 1.0.
 * You must have store the custom post template files in your theme in the same 
   directory/folder as your index.php template file, not in a sub-directory/sub-
   folder.

### Features

 * Select custom post type where you need to show the post template.
 * Select default setting to show post template in your theme default post type.
 * You can add Advanced Custom Fields field groups based on the Custom Post Template
   chosen

## Ảnh màn hình

[⌊Screenshot of dropdown for selecting a custom post type template⌉⌊Screenshot of
dropdown for selecting a custom post type template⌉[

Screenshot of dropdown for selecting a custom post type template

[⌊Screenshot of the enable post type select screen⌉⌊Screenshot of the enable post
type select screen⌉[

Screenshot of the enable post type select screen

[⌊Screenshot of a template that is a page template and a custom post type template
for two different custom post types⌉⌊Screenshot of a template that is a page template
and a custom post type template for two different custom post types⌉[

Screenshot of a template that is a page template and a custom post type template
for two different custom post types

[⌊Screenshot demonstrating how to use a Custom Post Type Template with Advanced 
Custom Fields⌉⌊Screenshot demonstrating how to use a Custom Post Type Template with
Advanced Custom Fields⌉[

Screenshot demonstrating how to use a Custom Post Type Template with Advanced Custom
Fields

## Cài đặt

#### Install

 1. Login into your WordPress admin panel
 2. Navigate to Plugins => Add New
 3. Click Upload
 4. Click Choose File and select the zip file.
 5. Click Install Now.
 6. Activate the plugin through the ‘Plugins’ menu in WordPress.
 7. Go to Dashboard => WP Post Template and set your general setting.
 8. To create new custom Post Template you need to put the new file in the same directory/
    folder as your index.php and just need to add comment (WP Post Template: Your New
    Post Template Name) in your new post template file same as you do for page template.

#### Uninstall

 1. Deactivate WP Post Template in the ‘Plugins’ menu in WordPress.
 2. After Deactivation a ‘Delete’ link appears below the plugin name, follow the link
    and confirm with ‘Yes, Delete these files’.
 3. This will delete all the plugin files from the server as well as erasing all options
    the plugin has stored in the database.

## Hỏi đáp

 * This is a forked version of dotsquares’ WP Post Template plugin. It allows theme
   authors to create post templates as well as page templates for their custom post
   types.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“WP Custom Post Template Redux” là mã nguồn mở. Những người sau đã đóng góp vào 
plugin này.

Những người đóng góp

 *   [ Mat Gargano ](https://profiles.wordpress.org/matstars/)
 *   [ DotsquaresLtd ](https://profiles.wordpress.org/dswpsupport/)

[Dịch “WP Custom Post Template Redux” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/wp-custom-post-template-redux)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/wp-custom-post-template-redux/),
check out [SVN repository](https://plugins.svn.wordpress.org/wp-custom-post-template-redux/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/wp-custom-post-template-redux/)
qua [RSS](https://plugins.trac.wordpress.org/log/wp-custom-post-template-redux/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.4.1

 * Minor documentation fixes

#### 1.4

 * Added integration with Advanced Custom Fields that allows creating fields based
   on a post template selected

#### 1.3.1

 * Added backwards compatibility with forked plugin, if you do not explicitly specify
   a post type (that is active in the plugins settings) in the template the template
   will be available to any post type (that is active in the settings).

#### 1.3

 * Forked plugin
 * added the ability to use post types in the template files
 * redid the admin screen — its now under settings
 * reworked some of the code

#### 1.1 – 2015-07-18

 * Updated according to new wp version functions.

#### 1.0

 * A initial version.

## Meta

 *  Phiên bản **1.4.3**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 3.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.5.33**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/wp-custom-post-template-redux/)
 * Thẻ
 * [custom post type](https://vi.wordpress.org/plugins/tags/custom-post-type/)[custom template](https://vi.wordpress.org/plugins/tags/custom-template/)
   [custom template for post](https://vi.wordpress.org/plugins/tags/custom-template-for-post/)
   [post-template](https://vi.wordpress.org/plugins/tags/post-template/)[wp custom post template](https://vi.wordpress.org/plugins/tags/wp-custom-post-template/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/wp-custom-post-template-redux/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/wp-custom-post-template-redux/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/wp-custom-post-template-redux/reviews/)

## Những người đóng góp

 *   [ Mat Gargano ](https://profiles.wordpress.org/matstars/)
 *   [ DotsquaresLtd ](https://profiles.wordpress.org/dswpsupport/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/wp-custom-post-template-redux/)