Title: Elevate Parent Category Template
Author: echoz
Published: <strong>3. August 2008</strong>
Last modified: 14. März 2011

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/elevate-parent-category-template.svg)

# Elevate Parent Category Template

 Von [echoz](https://profiles.wordpress.org/echoz/)

[Herunterladen](https://downloads.wordpress.org/plugin/elevate-parent-category-template.1.0.4.zip)

 * [Details](https://de.wordpress.org/plugins/elevate-parent-category-template/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/elevate-parent-category-template/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/elevate-parent-category-template/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/elevate-parent-category-template/#developers)

 [Support](https://wordpress.org/support/plugin/elevate-parent-category-template/)

## Beschreibung

This plugin provides functions to retrieve the parent category of any particular
post should it be assigned to a sub category of that parent category.

Using this feature, the plugin is also able to modify the WordPress Loop to redirect
any category page generation to the parent category. This is especially useful when
theme developers want to be able to specify category-x.php templates and have all
related posts, be it those assigned to the category or the sub categories use that
template for page generation.

So for example the current category structure is as follows.

 * Main Category (has category-x.php template)
    - Sub Category 1
    - Sub Category 2

A post is assigned to „Sub Category 2“.

When the post is requested the plugin will automatically detect if it has a parent
category. If so, it will modify the WP variables to set the current category as 
the parent category and add a new variable stating the actual category of the post.
This affects the WordPress Loop to category-x.php template defined for the parent

### Usable Commands for Theme Developers

The PHP commands for theme developers to use are pretty straight forward.

_get\_category\_child()_ returns the current post child category ID.

_is\_parent()_ checks if the current post is at the parent category.

_get\_category\_title($id)_ gets the title of the category that is $id.

_get\_category\_parent()_ returns the current post’s parent category ID.

## Installation

 1. Upload elevate-parent-category-template.php into your plugins folder.
 2. Activate and you’re done.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Elevate Parent Category Template“ ist Open-Source-Software. Folgende Menschen haben
an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ echoz ](https://profiles.wordpress.org/echoz/)

[Übersetze „Elevate Parent Category Template“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/elevate-parent-category-template)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/elevate-parent-category-template/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/elevate-parent-category-template/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/elevate-parent-category-template/)
per [RSS](https://plugins.trac.wordpress.org/log/elevate-parent-category-template/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.4**
 *  Zuletzt aktualisiert **vor 16 Jahren**
 *  Aktive Installationen **40+**
 *  WordPress-Version ** 2.5 oder höher **
 *  Getestet bis **3.1.4**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/elevate-parent-category-template/)
 * Schlagwörter
 * [category](https://de.wordpress.org/plugins/tags/category/)[loop](https://de.wordpress.org/plugins/tags/loop/)
   [template](https://de.wordpress.org/plugins/tags/template/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/elevate-parent-category-template/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Deine Rezension](https://wordpress.org/support/plugin/elevate-parent-category-template/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/elevate-parent-category-template/reviews/)

## Mitwirkende

 *   [ echoz ](https://profiles.wordpress.org/echoz/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/elevate-parent-category-template/)