WordPress plugin intelligence profile

Elevate Parent Category Template

Elevates parent category template to top of WordPress Loop.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.1
Current version1.0.4
WordPress coverageTested up to WordPress 3.1
Minimum stackWP 2.5 · PHP —
Directory statusactive
Last directory update14 Mar 201115y ago
Active installations40Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Elevate Parent Category Template version 1.0.4 as active, updated 15y ago and tested up to WordPress 3.1.

Overview

About this plugin

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. 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. 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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • category
  • loop
  • template
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.1

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.1.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.1
Minimum requirementsWordPress 2.5 · PHP not listed
Update activity14 Mar 201115y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.