Plugin info

Total downloads: 5,798
Active installs: 40
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 3/14/2011 (5406 days ago)
Added to WordPress: 8/3/2008 (17 years old)
Minimum WordPress version: 2.5
Tested up to WordPress version: 3.1.4
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5406 days ago

20/100

Is Elevate Parent Category Template abandoned?

Possibly abandoned (last update 5406 days ago).

Compatibility

Requires WordPress: 2.5
Tested up to: 3.1.4
Requires PHP: f

Developers

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Category Based Archives
Rating 0.0/5 (0 reviews)Active installs 10
Loops & Logic
Rating 4.9/5 (38 reviews)Active installs 2,000
Lyza Loop
Rating 0.0/5 (0 reviews)Active installs 0
Elementor Custom Skin
Rating 4.7/5 (116 reviews)Active installs 100,000
Custom Content Shortcode
Rating 5.0/5 (163 reviews)Active installs 10,000
Genesis Grid
Rating 4.9/5 (24 reviews)Active installs 2,000

Description

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.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

No changelog available