Title: Custom Post Type Template Redirect
Author: Sam Hotchkiss
Published: <strong>11 augustus 2010</strong>
Last modified: 11 augustus 2010

---

Plugins zoeken

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

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

# Custom Post Type Template Redirect

 Door [Sam Hotchkiss](https://profiles.wordpress.org/samhotchkiss/)

[Download](https://downloads.wordpress.org/plugin/custom-post-type-template-redirect.zip)

 * [Details](https://nl.wordpress.org/plugins/custom-post-type-template-redirect/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/custom-post-type-template-redirect/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/custom-post-type-template-redirect/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/custom-post-type-template-redirect/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/custom-post-type-template-redirect/)

## Beschrijving

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.

## Installatie

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.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“Custom Post Type Template Redirect” is open source software. De volgende personen
hebben bijgedragen aan deze plugin.

Bijdragers

 *   [ Sam Hotchkiss ](https://profiles.wordpress.org/samhotchkiss/)

[Vertaal “Custom Post Type Template Redirect” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-template-redirect)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/custom-post-type-template-redirect/),
haal de [SVN repository](https://plugins.svn.wordpress.org/custom-post-type-template-redirect/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/custom-post-type-template-redirect/)
via [RSS](https://plugins.trac.wordpress.org/log/custom-post-type-template-redirect/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versie **1.0**
 *  Laatst geüpdatet **16 jaar geleden**
 *  Actieve installaties **10+**
 *  WordPress versie ** 3.0 of nieuwer **
 *  Getest t/m **3.0.5**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/custom-post-type-template-redirect/)
 * Tags
 * [custom post types](https://nl.wordpress.org/plugins/tags/custom-post-types/)
   [redirect](https://nl.wordpress.org/plugins/tags/redirect/)[template](https://nl.wordpress.org/plugins/tags/template/)
   [theme](https://nl.wordpress.org/plugins/tags/theme/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/custom-post-type-template-redirect/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

[Je beoordeling](https://wordpress.org/support/plugin/custom-post-type-template-redirect/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/custom-post-type-template-redirect/reviews/)

## Bijdragers

 *   [ Sam Hotchkiss ](https://profiles.wordpress.org/samhotchkiss/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/custom-post-type-template-redirect/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](http://hotchkissconsulting.net/)